diff --git a/.github/workflows/check-n8n-new-release.yml b/.github/workflows/check-n8n-new-release.yml index 126ab77..12c9443 100644 --- a/.github/workflows/check-n8n-new-release.yml +++ b/.github/workflows/check-n8n-new-release.yml @@ -70,11 +70,15 @@ jobs: - name: Commit and push changes run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add Dockerfile - git commit -m "chore: bump OLLAMA_VERSION to ${{ needs.check-new-release.outputs.version_to_release }}" - git push + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add Dockerfile + if ! git diff --cached --quiet; then + git commit -m "chore: bump OLLAMA_VERSION to ${{ needs.check-new-release.outputs.version_to_release }}" + git push + else + echo "No changes to commit." + fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}