Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(ci): use GITHUB_TOKEN for PR create (has pull_requests write), PAT for merge (bypass)
EtienneLescot4d8cfa84661a
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.ymlindex 4ae6c7372..70e804d6a 100644--- a/.github/workflows/prerelease.yml+++ b/.github/workflows/prerelease.yml@@ -103,7 +103,11 @@ jobs:- name: Open PR and rebase-merge into mainenv:- GH_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}+ # GITHUB_TOKEN for PR creation (it has pull_requests: write by default).+ # OPENSCREEN_RELEASE_TOKEN (PAT bound to EtienneLescot) for the merge, so the+ # ruleset bypass applies.+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ PR_MERGE_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}PRERELEASE: ${{ steps.version.outputs.prerelease }}run: |set -euo pipefail@@ -115,7 +119,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-remote \+ GH_TOKEN="$PR_MERGE_TOKEN" gh pr merge "$PR_NUMBER" --rebase --delete-branch-remote \--repo "$GITHUB_REPOSITORY"- name: Push RC tagdiff --git a/.github/workflows/promote.yml b/.github/workflows/promote.ymlindex 277b2c590..386aa6f0a 100644--- a/.github/workflows/promote.yml+++ b/.github/workflows/promote.yml@@ -86,7 +86,11 @@ jobs:- name: Open PR and rebase-merge into mainenv:- GH_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}+ # GITHUB_TOKEN for PR creation (it has pull_requests: write by default).+ # OPENSCREEN_RELEASE_TOKEN (PAT bound to EtienneLescot) for the merge, so the+ # ruleset bypass applies.+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ PR_MERGE_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}STABLE_VERSION: ${{ steps.version.outputs.stable_version }}run: |set -euo pipefail@@ -98,7 +102,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-remote \+ GH_TOKEN="$PR_MERGE_TOKEN" gh pr merge "$PR_NUMBER" --rebase --delete-branch-remote \--repo "$GITHUB_REPOSITORY"- name: Push stable tag