From 6b7047e604b7b10d6afdd6cc969404a5aea9bbb1 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 18 Jul 2023 10:25:12 +0200 Subject: [PATCH] set workflow not to fail while deleting cache --- .github/workflows/test-backend.yml | 1 + .github/workflows/test-webapp.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index a96cff028..af53e1fbc 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -138,6 +138,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh extension install actions/gh-actions-cache + set +e KEY="backend-neo4j-cache-pr${{ needs.files-changed.outputs.pr-number }}" gh actions-cache delete $KEY -R Ocelot-Social-Community/Ocelot-Social --confirm KEY="backend-cache-pr${{ needs.files-changed.outputs.pr-number }}" diff --git a/.github/workflows/test-webapp.yml b/.github/workflows/test-webapp.yml index 772182778..421ce5187 100644 --- a/.github/workflows/test-webapp.yml +++ b/.github/workflows/test-webapp.yml @@ -114,6 +114,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh extension install actions/gh-actions-cache + set +e KEY="webapp-cache-pr${{ needs.files-changed.outputs.pr-number }}" gh actions-cache delete $KEY -R Ocelot-Social-Community/Ocelot-Social --confirm