Skip to content

Commit 6d0d36b

Browse files
committed
chore(ci): Clean up previous branch in case it was leaked
1 parent 30b3b14 commit 6d0d36b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/template.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
run: "git remote add template ${{ env.TEMPLATE_URL }} && git fetch template ${{ env.TEMPLATE_BRANCH }}"
4040
- name: Merge template
4141
run: "git checkout -b template-update && git merge template/${{ env.TEMPLATE_BRANCH }} -m 'chore: Update from template'"
42+
- name: Clear any existing branch
43+
run: "git push origin --delete template-update"
44+
continue-on-error: true
45+
env:
46+
GH_TOKEN: ${{ github.token }}
4247
- name: Push branch
4348
run: "git push --set-upstream origin template-update"
4449
env:

0 commit comments

Comments
 (0)