Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add date formats to templates #71

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

pquerna
Copy link
Contributor

@pquerna pquerna commented Apr 10, 2024

I wanted a cache to easily expire every month (and get rebuilt), so it was helpful to have date as a template option, eg:

  key: "z1-cache-{{ id }}-{{ runner.os }}-{{ checksum 'yarn.lock' }}-{{ date '+%Y-%m'}}"

@gencer gencer merged commit 5588c87 into nienbo:master Apr 10, 2024
1 check passed
@gencer
Copy link
Collaborator

gencer commented Apr 10, 2024

Hi @pquerna! Thanks for the PR.

Released as https://github.com/nienbo/cache-buildkite-plugin/releases/tag/v2.4.16 🚀

This pull request was closed.
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