diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 2a89a17..0a34e78 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -65,5 +65,9 @@ jobs: git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' git add Formula/comfy-cli.rb - git commit -m "Update comfy-cli formula" - git push + if git diff --staged --quiet; then + echo "No changes to commit." + else + git commit -m "Update comfy-cli formula" + git push + fi