Skip to content

Commit 50bbe9f

Browse files
committed
Use correct credentials to push to main in publish.yml
1 parent 48a49b9 commit 50bbe9f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
ref: ${{ github.event.inputs.branch }}
4242
token: ${{ secrets.GITHUB_TOKEN }}
4343
fetch-depth: 0
44+
persist-credentials: false # we set up our own PAT later to push to 'main', bypassing checks
4445

4546
- name: Install Rust
4647
uses: dtolnay/rust-toolchain@stable
@@ -149,6 +150,7 @@ jobs:
149150
run: |
150151
git config --local user.email "nikhilidiculla@gmail.com"
151152
git config --local user.name "Nikhil Idiculla (via GitHub Actions)"
153+
git remote set-url origin https://tsnl:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}.git
152154
153155
- name: Commit version bump (but don't push yet)
154156
run: |

0 commit comments

Comments
 (0)