Skip to content

Commit c20c4ee

Browse files
committed
fix(ci): add --admin flag to gh pr merge to bypass branch protection
1 parent ebf8449 commit c20c4ee

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/prerelease.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
--body "Automated version bump from the prerelease workflow. Rebase-merged via PAT; bypass applies because EtienneLescot is a ruleset bypass actor." \
119119
--repo "$GITHUB_REPOSITORY"
120120
PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY")
121-
gh pr merge "$PR_NUMBER" --rebase --delete-branch \
121+
gh pr merge "$PR_NUMBER" --rebase --delete-branch --admin \
122122
--repo "$GITHUB_REPOSITORY"
123123
124124
- name: Push RC tag

‎.github/workflows/promote.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
--body "Automated version bump from the promote workflow. Rebase-merged via PAT; bypass applies because EtienneLescot is a ruleset bypass actor." \
102102
--repo "$GITHUB_REPOSITORY"
103103
PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY")
104-
gh pr merge "$PR_NUMBER" --rebase --delete-branch \
104+
gh pr merge "$PR_NUMBER" --rebase --delete-branch --admin \
105105
--repo "$GITHUB_REPOSITORY"
106106
107107
- name: Push stable tag

0 commit comments

Comments
 (0)