Skip to content

Commit

Permalink
change git command to check for existing hotfix branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkgang committed Dec 18, 2024
1 parent 1d8270f commit 5a7e871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
exit 1
fi
branch_name="release/hotfix-${latest_tag}"
if git show-ref --quiet refs/heads/$branch_name; then
echo ":twisted_rightwards_arrows: branch name: $branch_name"
if git rev-parse --verify --quiet "refs/heads/$branch_name" >/dev/null; then
echo "# :fire: :warning: Hotfix branch already exists: ${branch_name}" >> $GITHUB_STEP_SUMMARY
exit 0
fi
Expand Down

0 comments on commit 5a7e871

Please sign in to comment.