From ea8677dd428f92c737f1838bb90993e3fe089704 Mon Sep 17 00:00:00 2001 From: niko Date: Sat, 20 Apr 2024 22:24:25 -0700 Subject: [PATCH] ci: less cursed ci --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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