mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-29 00:17:46 +01:00
chore(ci): Clean up previous branch in case it was leaked
This commit is contained in:
1 parent
30b3b14bd6
commit
6d0d36b072
1 file changed
+5
@@ -39,6 +39,11 @@ jobs:
|
||||
run: "git remote add template ${{ env.TEMPLATE_URL }} && git fetch template ${{ env.TEMPLATE_BRANCH }}"
|
||||
- name: Merge template
|
||||
run: "git checkout -b template-update && git merge template/${{ env.TEMPLATE_BRANCH }} -m 'chore: Update from template'"
|
||||
- name: Clear any existing branch
|
||||
run: "git push origin --delete template-update"
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
- name: Push branch
|
||||
run: "git push --set-upstream origin template-update"
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user