Skip to content

Make Actions cache keys update automatically#576

Merged
bors[bot] merged 1 commit into
mainfrom
sv/better-cache-keys
Oct 14, 2022
Merged

Make Actions cache keys update automatically#576
bors[bot] merged 1 commit into
mainfrom
sv/better-cache-keys

Conversation

@syvb
Copy link
Copy Markdown
Contributor

@syvb syvb commented Oct 13, 2022

Based on how pgx does caching, compute GitHub Actions cache keys based on the hash of lockfile and workflow file. Now we don't need to bump the versions manually every release.

Note that restore-keys will look for the most recent matching cache with the same prefix if there are no exact matches, so a cache will be available even on commits that update the lockfile/workflow file.

@syvb syvb force-pushed the sv/better-cache-keys branch from 8ea84f1 to e90fd2d Compare October 13, 2022 20:22
@syvb syvb requested a review from epgts October 14, 2022 13:05
Copy link
Copy Markdown
Contributor

@epgts epgts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread .github/workflows/ci.yml
@syvb
Copy link
Copy Markdown
Contributor Author

syvb commented Oct 14, 2022

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Oct 14, 2022

@bors bors Bot merged commit 1122dd7 into main Oct 14, 2022
@bors bors Bot deleted the sv/better-cache-keys branch October 14, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants