Skip to content

Commit

Permalink
Ensure dependency services can find git branch name on CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mears-2 committed Aug 2, 2024
1 parent f43f38b commit 77b2101
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/scripts/common
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fi

if [[ -v "BRANCH_NAME" ]]; then
GIT_BRANCH=${BRANCH_NAME}
elif [[ -v "GITHUB_HEAD_REF" ]]; then
GIT_BRANCH=${GITHUB_HEAD_REF}
else
GIT_BRANCH=$(git symbolic-ref --short HEAD)
fi
Expand Down

0 comments on commit 77b2101

Please sign in to comment.