Fix: Skip main branch deletion in release pipeline #27

Merged
Copilot merged 2 commits from copilot/fix-main-branch-deletion-error into main 2026-01-03 23:36:28 +00:00

View File

@@ -314,7 +314,11 @@ jobs:
git checkout -B "${DST}" "origin/${SRC}"
git push origin "${DST}"
git push origin --delete "${SRC}"
# Skip deletion of main branch as GitHub does not allow deleting the default branch
if [ "${SRC}" != "main" ]; then
git push origin --delete "${SRC}"
fi
{
echo "### Promotion report"