Skip to content

Commit 8624794

Browse files
Merge pull request #5 from hafezgharbiah-8451/head-branch-update
Update reference to head branch
2 parents 2d2c339 + ff59837 commit 8624794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo -e "\tTAG_CONTEXT: ${tag_context}"
2828
echo -e "\tPRERELEASE_SUFFIX: ${suffix}"
2929
echo -e "\tVERBOSE: ${verbose}"
3030

31-
current_branch=$(git rev-parse --abbrev-ref HEAD)
31+
current_branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
3232

3333
pre_release="true"
3434
IFS=',' read -ra branch <<< "$release_branches"

0 commit comments

Comments
 (0)