Skip to content

Commit ad91367

Browse files
committed
ci: correct which entry release macOS builds restore
Release starts before CI saves the entry for the release commit, so it restores the previous main commit's store, which still matches because release commits only bump package.json files.
1 parent a316c87 commit ad91367

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/actions/setup-nix-cache/action.yaml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ runs:
117117
# GitHub REST API used by cache-nix-action's purge mode.
118118
#
119119
# Like the sticky disk key, the key has no workflow name, so release.yaml's
120-
# macOS builds, which never save, restore the entry ci.yaml saved on main,
121-
# often for the very commit being released. Two workflows sharing a job id
122-
# can only collide on the primary key for the same commit, whose stores hold
123-
# the same build.
120+
# macOS builds, which never save, restore the entry ci.yaml saved for the
121+
# previous main commit: release starts before CI saves for the release
122+
# commit, which only bumps package.json files outside the deps hash. Two
123+
# workflows sharing a job id can only collide on the primary key for the
124+
# same commit, whose stores hold the same build.
124125
- name: Compute Nix cache key
125126
if: steps.backend.outputs.sticky != 'true'
126127
id: key

0 commit comments

Comments
 (0)