diff --git a/.github/workflows/update-projects.yml b/.github/workflows/update-projects.yml index 414666d..40caad3 100644 --- a/.github/workflows/update-projects.yml +++ b/.github/workflows/update-projects.yml @@ -38,12 +38,12 @@ jobs: - name: Commit and push run: | - if [[ -z "$(git status --porcelain content/page/projects/index.md)" ]]; then - echo "No changes to commit." - exit 0 - fi git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add content/page/projects/index.md + if git diff --cached --quiet; then + echo "No changes to commit." + exit 0 + fi git commit -m "chore(projects): refresh projects list" git push