-
|
I want a way to get the branch name (not Initially I thought that What's an expression that would evaluate to Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Hi, You can check |
Beta Was this translation helpful? Give feedback.
-
|
I ended up using |
Beta Was this translation helpful? Give feedback.
-
|
To get source branch Name : ${{github.ref_name}} |
Beta Was this translation helpful? Give feedback.
-
|
I have tired to retrieve Branch name from the merge commit message on a push event and it's working for me. |
Beta Was this translation helpful? Give feedback.
-
|
i was able to do it with this solution from stack overflow: https://stackoverflow.com/a/58035262 |
Beta Was this translation helpful? Give feedback.
I ended up using
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}but I'm not sure if this is the best way, works for now.