Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(ci): add --admin flag to gh pr merge to bypass branch protection

EtienneLescotc20c4ee117fe
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index 49f9d0de3..c5b2daa9e 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -118,7 +118,7 @@ jobs:
--body "Automated version bump from the prerelease workflow. Rebase-merged via PAT; bypass applies because EtienneLescot is a ruleset bypass actor." \
--repo "$GITHUB_REPOSITORY"
PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY")
- gh pr merge "$PR_NUMBER" --rebase --delete-branch \
+ gh pr merge "$PR_NUMBER" --rebase --delete-branch --admin \
--repo "$GITHUB_REPOSITORY"
- name: Push RC tag
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml
index a8da42c28..e302dc056 100644
--- a/.github/workflows/promote.yml
+++ b/.github/workflows/promote.yml
@@ -101,7 +101,7 @@ jobs:
--body "Automated version bump from the promote workflow. Rebase-merged via PAT; bypass applies because EtienneLescot is a ruleset bypass actor." \
--repo "$GITHUB_REPOSITORY"
PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY")
- gh pr merge "$PR_NUMBER" --rebase --delete-branch \
+ gh pr merge "$PR_NUMBER" --rebase --delete-branch --admin \
--repo "$GITHUB_REPOSITORY"
- name: Push stable tag