diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff69c78..6e2f360 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -110,10 +110,8 @@ jobs: cargo +nightly fmt git config --global user.name "GitHub Actions" git config --global user.email "team@pyro.host" - git commit -am "refactor: rustfmt [skip ci]" && echo 1 || echo 1 - - git push && echo 0 || echo 1 - + + if [ `git status --porcelain` ]; then git add && git commit && git push; fi - name: Set up cache uses: actions/cache/restore@v4