Skip to content

Commit 081a450

Browse files
add cleanup
1 parent 8fc3028 commit 081a450

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/draft-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
7777
git config user.name "github-actions[bot]"
7878
git config user.email "github-actions[bot]@users.noreply.github.com"
79+
80+
# Clean up any leftover remote branch from a previous run
81+
git push origin --delete "$BRANCH" 2>/dev/null || true
82+
7983
git checkout -b "$BRANCH"
8084
8185
# Replace the version line in the workspace Cargo.toml

0 commit comments

Comments
 (0)