Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

ci: don't fail PR publish when gha cache write is denied

Matt Roberts15e779626056
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 24c2989c5..a7d68385d 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -49,7 +49,9 @@ jobs:
platforms: linux/amd64
tags: getfider/fider:PR_${{ github.event.workflow_run.pull_requests[0].number }}
cache-from: type=gha
- cache-to: type=gha,mode=max
+ # PR-triggered workflow_run gets a read-only cache token, so cache writes are
+ # denied; ignore-error keeps that from failing the build (reads still work).
+ cache-to: type=gha,mode=max,ignore-error=true
- name: build and push docker image (push branch)
if: ${{ github.event.workflow_run.event == 'push' }}