We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8afb413 commit 50ba560Copy full SHA for 50ba560
1 file changed
.github/workflows/upstream-sync.yml
@@ -35,6 +35,11 @@ jobs:
35
echo "behind=$BEHIND" >> $GITHUB_OUTPUT
36
echo "$BEHIND new commits from upstream"
37
38
+ - name: Delete old sync branches
39
+ if: steps.check.outputs.behind != '0'
40
+ run: |
41
+ git push origin --delete upstream-sync/$(date +%Y-%m-%d) 2>/dev/null || true
42
+
43
- name: Create sync branch and merge
44
if: steps.check.outputs.behind != '0'
45
id: merge
@@ -68,7 +73,7 @@ jobs:
68
73
- name: Push sync branch
69
74
70
75
run: |
71
- git push -u origin "${{ steps.merge.outputs.branch }}"
76
+ git push -u origin "${{ steps.merge.outputs.branch }}" --force
72
77
78
- name: Create PR (clean merge)
79
if: steps.check.outputs.behind != '0' && steps.merge.outputs.clean == 'true'
0 commit comments