Skip to content

Commit e271885

Browse files
committed
fix(ci): use PAT fallback for release-please PR creation
1 parent 5a65087 commit e271885

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
release-please:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Release token preflight
13+
run: |
14+
if [ -z "${{ secrets.RELEASE_PLEASE_TOKEN }}" ]; then
15+
echo "::warning::RELEASE_PLEASE_TOKEN is not set. Falling back to GITHUB_TOKEN. If this repository blocks GITHUB_TOKEN from creating pull requests, set RELEASE_PLEASE_TOKEN to a PAT with repo scope."
16+
fi
1217
- uses: googleapis/release-please-action@v4
1318
with:
1419
release-type: node
20+
token: ${{ secrets.RELEASE_PLEASE_TOKEN != '' && secrets.RELEASE_PLEASE_TOKEN || github.token }}

0 commit comments

Comments
 (0)