Skip to content

Accessing dynamic variable name in github actions #25634

Answered by Simran-B
git-hub-007 asked this question in Actions
Discussion options

You must be logged in to vote

GHA contexts are only accessible in workflow expressions ${{ }}. Mixing them with shell commands like that will not work. I think you should do this:

echo ${{ needs.build.outputs[format('c_ip{0}', matrix.index)] }}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@RichardTMiles
Comment options

@Darjow
Comment options

@PIrojahPerbak
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants