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
CodePudding user response:
This should do the trick
${{ steps.azure-secrets.outputs[env.x] }}
Please check this topic - Nested variable substitution