Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using a variable inside context expression in GitHub Actions

Is it possible to use another variable inside context expression in GitHub Actions like

${{ steps.azure-secrets.outputs.$x }}

if x=store-id then the above should convert to

${{ steps.azure-secrets.outputs.store-id }}

So that I can use this expression and let it evaluate the value

like image 556
Kartoos Avatar asked Oct 22 '25 16:10

Kartoos


1 Answers

This should do the trick

${{ steps.azure-secrets.outputs[env.x] }}

Please check this topic - Nested variable substitution

like image 160
Krzysztof Madej Avatar answered Oct 25 '25 02:10

Krzysztof Madej



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!