Skip to content

Commit

Permalink
ci: check for changes before comitting
Browse files Browse the repository at this point in the history
Co-authored-by: Irate-Walrus <[email protected]>
  • Loading branch information
oberrich and Irate-Walrus authored Dec 29, 2024
1 parent 77ee68b commit 7ec7df7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ec7df7

Please sign in to comment.