Skip to content

Commit 06b67d4

Browse files
committed
fix(ci): push hotfix cherry-picks with PAT to satisfy branch rules
1 parent 5dd2b5b commit 06b67d4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/hotfix-cherry-pick.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
ref: main
2222
fetch-depth: 0
23+
token: ${{ secrets.HOTFIX_PUSH_TOKEN }}
2324

2425
- name: Cherry-pick fix to main
2526
run: |
@@ -31,4 +32,5 @@ jobs:
3132
else
3233
git cherry-pick -x "$SHA"
3334
fi
35+
git commit --amend -m "$(git log -1 --format=%B)" -m "[skip ci]"
3436
git push origin main

0 commit comments

Comments
 (0)