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 f3b1be0
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 "🌿 branch name: $branch_name"
if git show-ref --verify --quiet "refs/remotes/origin/$branch_name"; then
echo "# :fire: :warning: Hotfix branch already exists: ${branch_name}" >> $GITHUB_STEP_SUMMARY
exit 0
fi
Expand Down

0 comments on commit f3b1be0

Please sign in to comment.