diff --git a/.github/workflows/update-authors.yml b/.github/workflows/update-authors.yml index 2d9a65e..0263eae 100644 --- a/.github/workflows/update-authors.yml +++ b/.github/workflows/update-authors.yml @@ -13,11 +13,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Set up Git config - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: Generate AUTHORS file (Name format) run: | git log --format='%aN <%aE>' | sort -u > AUTHORS @@ -30,7 +25,7 @@ jobs: fi - name: Commit and push changes - run: | - git add AUTHORS - git commit -m "Update AUTHORS file automatically" - git push https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }} HEAD:main + uses: EndBug/add-and-commit@v9.1.4 + add: "AUTHORS" + default_author: github_actions + message: "Update AUTHORS file automatically"