diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e66fee8..9dd6a36 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -36,10 +36,9 @@ jobs: args: --all - name: Format project with rustfmt run: | - # Run format or exit if not required cargo fmt --all --check && echo "No formatting required, exiting early..." && exit 0 cargo fmt --all --verbose - + # Check for format loop '[ "$(git log -1 --pretty=%B | grep -E ".+")" = "rustfmt" ] && echo "format loop detected, aborting..." && exit 1'