Reputation: 1160
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
Upvotes: 4
Views: 2492
Reputation: 40603
This should do the trick
${{ steps.azure-secrets.outputs[env.x] }}
Please check this topic - Nested variable substitution
Upvotes: 5