diff --git a/.github/workflows/populate-readme.yml b/.github/workflows/populate-readme.yml index 8660b8ba..f9885179 100644 --- a/.github/workflows/populate-readme.yml +++ b/.github/workflows/populate-readme.yml @@ -40,7 +40,10 @@ jobs: git add readme.md git config --local user.email "action@github.com" git config --local user.name "GitHub Action" + # commit only if any changes + if [ ! -z "$(git status --porcelain)" ]; then git commit -m "chore: generate \`readme.md\`, lint \`src/data.js\`" + fi - name: Push changes uses: ad-m/github-push-action@master