File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2525 uses : actions/checkout@v3
2626 with :
2727 fetch-depth : 0
28+ token : ${{ secrets.RELEASE_TOKEN }}
2829
2930 - name : Get next release number
3031 id : get_next_release
5455 # Commit the version change
5556 git add Cargo.toml
5657 git commit -m "Bump version to $version_number for release"
58+
59+ # Use RELEASE_TOKEN for push
60+ git remote set-url origin https://x-access-token:${{ secrets.RELEASE_TOKEN }}@github.com/${{ github.repository }}
5761 git push
5862
5963 - name : Get binary name from Cargo.toml
8387 uses : actions/checkout@v3
8488 with :
8589 ref : main # Ensure we have the latest commit with version update
90+ token : ${{ secrets.RELEASE_TOKEN }}
8691
8792 - name : Install Rust
8893 uses : actions-rs/toolchain@v1
@@ -131,6 +136,7 @@ jobs:
131136 uses : actions/checkout@v3
132137 with :
133138 ref : main # Ensure we have the latest commit with version update
139+ token : ${{ secrets.RELEASE_TOKEN }}
134140
135141 - name : Install Rust
136142 uses : actions-rs/toolchain@v1
You can’t perform that action at this time.
0 commit comments