diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index c314796..7059ff0 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -6,7 +6,7 @@ on: permissions: contents: write jobs: - publish: + update_readme: runs-on: ubuntu-latest steps: - name: Checkout repo @@ -15,8 +15,10 @@ jobs: run: python3 scripts/update_readme.py - name: Push changes run: | - git config user.name "Sunil Pandey" - git config user.email "64631561+sunilbpandey@users.noreply.github.com" git add README.md - git commit -m "Update README.md" - git push + if ! git diff --cached --quiet; then + git config user.name "Sunil Pandey" + git config user.email "64631561+sunilbpandey@users.noreply.github.com" + git commit -m "Update README.md" + git push + fi