Double substitution on Github Action - Nested substitution #26419
-
I have a problem with a double substitution on a GitHub Action. I have a secret named: On GitHub actions, I am trying to use the value of the env variable depending on the branch like this:
I have tried multiple combinations but all failing, any thought? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Maybe like this:
|
Beta Was this translation helpful? Give feedback.
-
Hi @Simran-B thank you for your reply. Actually, I found the solution not that long ago doing the following:
Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
Cool, I think yours is easier to parse. BTW. Is there a way to combine //edit: Bash doesn’t seem to support nesting Bash Nested Substring Removal (Extraction)?
string, bash, substring
asked by
Chris
on 07:52PM - 24 Jan 18 UTC
|
Beta Was this translation helpful? Give feedback.
-
I am not sure if it is possible to combine However, it is possible to do this
Thank you :slight_smile: |
Beta Was this translation helpful? Give feedback.
Hi @Simran-B thank you for your reply.
Actually, I found the solution not that long ago doing the following:
name: Deploy
run: echo ${{ secrets[env.BRANCH_ENVIRONMENT_NAME] }}
Thank you very much!