Skip to content

Commit 1a40b97

Browse files
committed
ci: use pat
1 parent 204251b commit 1a40b97

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14-
permissions:
15-
contents: write
16-
1714
jobs:
1815
build:
1916
runs-on: ubuntu-latest
@@ -32,7 +29,7 @@ jobs:
3229
with:
3330
path: 'gh-pages'
3431
ref: gh-pages
35-
token: ${{ secrets.GITHUB_TOKEN }}
32+
tokeb: ${{ secrets.PAT }}
3633

3734
- name: Move .git to build
3835
run: mv './gh-pages/.git' './build'
@@ -41,8 +38,8 @@ jobs:
4138
continue-on-error: true
4239
run: |
4340
cd './build'
44-
git config user.name "github-actions[bot]"
45-
git config user.email "github-actions[bot]@users.noreply.github.com"
41+
git config user.name github-actions
42+
git config user.email github-actions@github.com
4643
git add .
4744
git commit -m "Update pages"
4845
git push

0 commit comments

Comments
 (0)