We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40c1d7 commit 25a6d86Copy full SHA for 25a6d86
1 file changed
.github/workflows/create-hotfix-pr.yml
@@ -188,6 +188,12 @@ jobs:
188
189
echo "::warning::Workflow file changes detected for ${base_branch}; creating manual hotfix tracking PR."
190
191
+ if git ls-remote --exit-code origin "refs/heads/$tracking_branch" >/dev/null 2>&1; then
192
+ echo "::error::Tracking branch '$tracking_branch' already exists on remote. Delete it manually before re-running."
193
+ push_failed="true"
194
+ continue
195
+ fi
196
+
197
git checkout "$base_branch"
198
git branch -D "$new_branch"
199
git checkout -b "$tracking_branch"
0 commit comments