Skip to content

Nested variable substitution #26428

Answered by Simran-B
s-boardman asked this question in Actions
Discussion options

You must be logged in to vote

Nested expressions are not supported I think?

You can do the following however:

key: ${{ format('{0}-conda-stage-{1}-{2}', runner.os, matrix.stack, hashFiles(format('env/{0}_environment.yml', matrix.stack))) }}

docs.github.com

Context and expression syntax for GitHub Actions - GitHub Docs

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pascallj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants