feat: add environment variable support to cache key templates by pepicrft · Pull Request #250 · jdx/mise-action (original) (raw)
Add support for {{env.VAR_NAME}} syntax in cache key templates to allow reading environment variable values. This enables more flexible cache key customization based on CI/CD environment variables like branch names, deployment environments, or custom build identifiers.
Examples:
- mise-{{env.GITHUB_REF_NAME}}-{{platform}}-{{file_hash}}
- {{default}}{{#if env.CUSTOM_SUFFIX}}-{{env.CUSTOM_SUFFIX}}{{/if}}
jdx mentioned this pull request
jdx added a commit that referenced this pull request
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
[ Show hidden characters]({{ revealButtonHref }})