Skip to content

Commit 6c079c9

Browse files
authored
add PAT to workflow
1 parent 94392b1 commit 6c079c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/readme-version.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
3131
- name: Commit and push changes
3232
run: |
33-
git config --global user.name "GitHub Actions Bot"
34-
git config --global user.email "collinjbarber@gmail.com"
35-
git add README.md
36-
git diff --quiet && git diff --staged --quiet || (git commit -m "Update version in README.md" && git push)
33+
git config --global user.name "GitHub Actions Bot"
34+
git config --global user.email "collinjbarber@gmail.com"
35+
git remote set-url origin https://${{ secrets.PAT }}@github.com/CJCrafter/ChatGPT-Java-API.git
36+
git add README.md
37+
git diff --quiet && git diff --staged --quiet || (git commit -m "Update version in README.md" && git push)

0 commit comments

Comments
 (0)