You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/bump-nix-package.yml
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@ on:
10
10
required: true
11
11
type: string
12
12
13
+
# GITHUB_TOKEN only pushes the branch here — the PR itself is opened with the
14
+
# PAT below, so no `pull-requests: write` is needed (and it never worked).
13
15
permissions:
14
16
contents: write
15
-
pull-requests: write
16
17
17
18
jobs:
18
19
bump:
@@ -78,7 +79,13 @@ jobs:
78
79
79
80
- name: Create PR
80
81
env:
81
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82
+
# NOT GITHUB_TOKEN: the repo has "Allow GitHub Actions to create and
83
+
# approve pull requests" turned off, so `gh pr create` dies with
84
+
# "GitHub Actions is not permitted to create or approve pull requests"
85
+
# — it did exactly that on v1.7.0, after pushing the branch, and #136
86
+
# had to be opened by hand. The PAT every other release workflow
87
+
# already uses has no such restriction, and its PRs trigger CI.
88
+
GH_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}
82
89
VERSION: ${{ steps.meta.outputs.version }}
83
90
HASH: ${{ steps.hash.outputs.hash }}
84
91
BRANCH: ${{ steps.meta.outputs.branch }}
@@ -112,7 +119,5 @@ jobs:
112
119
- \`npmDepsHash\` → \`${HASH}\` (computed via \`prefetch-npm-deps package-lock.json\`)
113
120
114
121
Merge this so Nix users (NixOS, Home Manager, \`nix run github:${{ github.repository }}\`) pick up the new release.
115
-
116
-
> Note: PRs opened by \`GITHUB_TOKEN\` don't auto-trigger CI. The diff is two lines — review the change here, then merge. If you want CI to run, push an empty commit to this branch or close-and-reopen the PR.
0 commit comments