We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1231c9 + 13829c7 commit f90c125Copy full SHA for f90c125
1 file changed
.github/workflows/auto-release.yml
@@ -98,8 +98,17 @@ jobs:
98
echo "✅ Tag '$TAG' does not exist"
99
100
- name: '🌿 Create release branch'
101
+ env:
102
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103
run: |
104
BRANCH="${{ steps.version.outputs.branch_name }}"
105
+
106
+ # Delete existing release branch if it exists (from a previous failed run)
107
+ if git ls-remote --heads origin "$BRANCH" | grep -q "$BRANCH"; then
108
+ echo "ℹ️ Branch '$BRANCH' already exists, deleting it..."
109
+ gh api -X DELETE "repos/${{ github.repository }}/git/refs/heads/$BRANCH" || true
110
+ fi
111
112
git checkout -b "$BRANCH"
113
114
- name: '📝 Update version in TelegramDownloader.csproj'
0 commit comments