Skip to content

Commit dfa11cf

Browse files
author
sun
committed
Fix workflow: add fetch-depth, git config, and move GITHUB_TOKEN
1 parent 6e77379 commit dfa11cf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ permissions:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11-
env:
12-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1311
steps:
1412
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
@@ -21,4 +21,8 @@ jobs:
2121
pip install mkdocs-material
2222
- name: Build and Deploy
2323
run: |
24+
git config --global user.name "github-actions[bot]"
25+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2426
mkdocs gh-pages --force
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)