Skip to content

Commit 970b6a6

Browse files
fix: use PAT token to allow workflows to trigger on PR merges (#8)
GitHub's GITHUB_TOKEN doesn't trigger workflows to prevent infinite loops. Using PAT (with fallback to GITHUB_TOKEN) allows release workflow to trigger when PRs are merged to main. To enable: Add PAT to repo secrets as 'PAT' with 'repo' and 'workflow' scopes.
1 parent d2fc3dd commit 970b6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
steps:
4848
- uses: actions/checkout@v4
4949
with:
50-
token: ${{ secrets.GITHUB_TOKEN }}
50+
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
5151
fetch-depth: 0
5252

5353
- name: Setup pnpm

0 commit comments

Comments
 (0)