Skip to content

Commit

Permalink
Fix git to use available command
Browse files Browse the repository at this point in the history
Co-authored-by: Wayne Adams <[email protected]>
Co-authored-by: Janice Bailey <[email protected]>
  • Loading branch information
wayneadams and bjanice75 committed Mar 11, 2024
1 parent 1ee3497 commit 460c50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
branch_suffix=$(echo "${GITHUB_SHA}" | cut -c1-7)
branch_name="tmp/upgrade-golang-${branch_suffix}"
if git show-ref --exists "refs/heads/${branch_name}"; then
if git show-ref --verify --quiet "refs/heads/${branch_name}"; then
echo "Branch ${branch_name} already exists. Exiting..."
exit 0
fi
Expand Down

0 comments on commit 460c50c

Please sign in to comment.