diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 7fa8769b3..99faa5c68 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -23,3 +23,11 @@ jobs: - name: Update CONTRIBUTORS.md run: | node .github/scripts/update-contributors.js + + - name: Commit and push if it's not up to date + run: | + git diff + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + git commit -am "Update CONTRIBUTORS.md" || exit 0 + git push