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
This should do the trick
${{ steps.azure-secrets.outputs[env.x] }}
Please check this topic - Nested variable substitution
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With