Skip to content

Commit

Permalink
Use PAT in updateVersion.yml (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolay authored Dec 6, 2024
1 parent 64883eb commit 6760466
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/updateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

permissions:
contents: write

jobs:
update-config:
runs-on: ubuntu-latest
Expand All @@ -23,15 +22,14 @@ jobs:
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config --local user.email "[email protected]"
git config --local user.name "turbolay"
git checkout -b update-version-branch
git add docs/.vuepress/config.ts
git commit -m "Update version to ${{ github.event.client_payload.new_version }}"
git push -f --set-upstream origin update-version-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

GITHUB_TOKEN: ${{ secrets.VERSION_UPDATE_TOKEN }}
- name: Install GitHub CLI
run: sudo apt-get install gh

Expand Down

0 comments on commit 6760466

Please sign in to comment.