Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,15 @@ jobs:
echo "should_release=false" >> $GITHUB_OUTPUT

# Bump version in Cargo.toml if needed
# Uses RELEASE_TOKEN (PAT) to bypass branch protection, falls back to GITHUB_TOKEN
bump-version:
needs: check
if: needs.check.outputs.should_release == 'true' && needs.check.outputs.needs_bump == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}

- name: Update Cargo.toml version
run: |
Expand All @@ -154,7 +155,7 @@ jobs:
git commit -m "chore: bump version to $VERSION [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITHUB_TOKEN }}

build:
needs: [check, bump-version]
Expand Down