From aa9cf297551834af257ad701a2b925fee7ba640e Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Fri, 18 Oct 2024 13:56:14 +0000 Subject: [PATCH] upload screenshot if action failed --- .github/workflows/docker-publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a5d7508..a3ba767 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -88,6 +88,13 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max + - name: Upload error logs + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: error-screenshots + path: ./errors + # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker # repository is public to avoid leaking data. If you would like to publish