yym68686 commited on
Commit
32f4b84
·
1 Parent(s): 13a1a61

📖 Docs: Update main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +3 -1
.github/workflows/main.yml CHANGED
@@ -55,12 +55,14 @@ jobs:
55
  echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
56
 
57
  - name: Commit version bump
 
 
58
  run: |
59
  git config --global user.name 'github-actions[bot]'
60
  git config --global user.email 'github-actions[bot]@users.noreply.github.com'
61
  git add VERSION
62
  git commit -m "Bump version to ${{ steps.bump_version.outputs.new_version }}"
63
- git push
64
 
65
  - name: Build and push Docker image
66
  uses: docker/[email protected]
 
55
  echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
56
 
57
  - name: Commit version bump
58
+ env:
59
+ GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
60
  run: |
61
  git config --global user.name 'github-actions[bot]'
62
  git config --global user.email 'github-actions[bot]@users.noreply.github.com'
63
  git add VERSION
64
  git commit -m "Bump version to ${{ steps.bump_version.outputs.new_version }}"
65
+ git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} HEAD:main
66
 
67
  - name: Build and push Docker image
68
  uses: docker/[email protected]