diff --git a/.github/workflows/tlpclear-githubpages.yml b/.github/workflows/tlpclear-githubpages.yml index d3b23a60..510085d7 100644 --- a/.github/workflows/tlpclear-githubpages.yml +++ b/.github/workflows/tlpclear-githubpages.yml @@ -49,12 +49,9 @@ jobs: run: python -m mkdocs build --strict - name: build rss feeds run: python generate_rss.py - - name: Commit and push changes - run: | - git config --global user.name 'GitHub Actions' - git config --global user.email 'actions@github.com' - git diff --quiet && git diff --staged --quiet || (git add . && git commit -m 'Format markdown files') - git push origin ${{ github.head_ref }} + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Format markdown docs - name: Setup Pages uses: actions/configure-pages@c5a3e1159e0cbdf0845eb8811bd39e39fc3099c2 # v2.1.3 - name: Upload artifact