From 7ec7df72a0a87ade6cad051df35dfbf62c51bcc9 Mon Sep 17 00:00:00 2001 From: 52 69 63 68 61 72 64 Date: Sun, 29 Dec 2024 05:41:39 +0100 Subject: [PATCH] ci: check for changes before comitting Co-authored-by: Irate-Walrus <71628949+Irate-Walrus@users.noreply.github.com> --- .github/workflows/rust.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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