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): use OPENSCREEN_RELEASE_TOKEN for git push to bypass repo ruleset

EtienneLescot9c93d9df9592
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index 5c91f28ed..f80fea640 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -90,6 +90,10 @@ jobs:
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ # Push via the PAT so the repo ruleset bypass (set for EtienneLescot) applies.
+ # actions/checkout@v4 defaults to GITHUB_TOKEN which uses github-actions[bot],
+ # a different actor that is NOT in the bypass list.
+ git remote set-url "https://x-access-token:${TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git add package.json
git commit -m "chore(release): bump to ${{ steps.version.outputs.prerelease }} [skip ci]"
git push
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml
index 8e2d90028..80b3b68d4 100644
--- a/.github/workflows/promote.yml
+++ b/.github/workflows/promote.yml
@@ -74,6 +74,10 @@ jobs:
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ # Push via the PAT so the repo ruleset bypass (set for EtienneLescot) applies.
+ # actions/checkout@v4 defaults to GITHUB_TOKEN which uses github-actions[bot],
+ # a different actor that is NOT in the bypass list.
+ git remote set-url "https://x-access-token:${TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git add package.json
git commit -m "chore(release): bump to ${{ steps.version.outputs.stable_version }} [skip ci]"
git push