Skip to content

Commit e9c0edf

Browse files
fix: use PAT_TOKEN to bypass branch protection in release workflow (#234)
Allows the cargo-workspaces release workflow to push version bump commits to the main branch by using a Personal Access Token with bypass permissions when available, falling back to GITHUB_TOKEN otherwise.
1 parent 754baff commit e9c0edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cargo-workspaces-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
29-
token: ${{ secrets.GITHUB_TOKEN }}
29+
token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
3030

3131
- name: Install Rust toolchain
3232
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)