Repository navigation
ci: fix hashFiles in composite action output expression - #20153
Merged
Merged
Conversation
hashFiles() is not available in composite action outputs.value expressions. Use steps.restore.outputs.cache-primary-key instead, which reflects the exact key passed to the cache/restore step. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
awskii
previously approved these changes
Mar 25, 2026
lystopad
approved these changes
Mar 25, 2026
awskii
approved these changes
Mar 25, 2026
wmitsuda
pushed a commit
that referenced
this pull request
Apr 1, 2026
## Summary - Use `steps.restore.outputs.cache-primary-key` instead of re-computing the inline `hashFiles` expression in the `restore-mod-cache` composite action's `primary-key` output. The inline expression was being evaluated at the wrong level (composite action output context rather than step context), causing a cache key mismatch between restore and save. Cherry-picked from #20146 (ae57f6f) to land independently. ## Test plan - [ ] Verify CI cache hit/miss behavior on a workflow run using this action 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Oleksandr Lystopad <oleksandr.lystopad@erigon.tech>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
steps.restore.outputs.cache-primary-keyinstead of re-computing the inlinehashFilesexpression in therestore-mod-cachecomposite action'sprimary-keyoutput. The inline expression was being evaluated at the wrong level (composite action output context rather than step context), causing a cache key mismatch between restore and save.Cherry-picked from #20146 (ae57f6f) to land independently.
Test plan
🤖 Generated with Claude Code