Skip to content

Commit b66d53f

Browse files
committed
fix 403 issue
1 parent 03e5346 commit b66d53f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
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
@@ -54,6 +55,9 @@ jobs:
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
@@ -83,6 +87,7 @@ jobs:
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

0 commit comments

Comments
 (0)