Commit eff2980
committed
Share Linux build deps via artifact, not cache
The Auto-Release workflow fires on pull_request: closed and its head
ref is the (now-deleted) PR source branch — auto-merge.yml uses
`gh pr merge --delete-branch`. GitHub Actions scopes cache writes to
the workflow's head ref; with the ref already deleted by the time
Auto-Release starts, the runtime token has no writable scopes and the
save fails with:
Cache reservation failed: cache write denied: token has no writable scopes
Failed to save: Unable to reserve cache with key <run_id>-dependencies
The downstream build_linux jobs then hit "Cache not found" during
restore, tree $RELENV_DATA/download errors out, and every Linux entry
fails. That's what killed the 0.22.17 release run (28422611083). The
same run on pr.yml's push-to-main path (28422611021) worked because
main is a real ref with a valid cache scope.
Artifacts are scoped to the run_id, not a branch ref, so branch
deletion doesn't affect them. Swap the actions/cache pair for
actions/upload-artifact + actions/download-artifact:
- retention-days: 1 keeps the artifact tiny in storage
- if-no-files-found: error catches the case where --download-only
silently produced nothing
Behaviour is identical for the pr.yml path (both cache and artifact
work there); the Auto-Release path stops failing.1 parent 5afea51 commit eff2980
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
| 41 | + | |
33 | 42 | | |
34 | | - | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
89 | | - | |
90 | | - | |
| 99 | + | |
| 100 | + | |
91 | 101 | | |
| 102 | + | |
92 | 103 | | |
93 | | - | |
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
| |||
0 commit comments