diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e277357..9f8fc58 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -83,5 +83,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git add src/ffi - git commit -m "Update bindgen files" - git push + # Check if there are any changes to commit + if git diff --exit-code --cached; then + echo "No changes to commit." + else + git commit -m "Update bindgen files" + git push + fi