From 55f8ab74115d61461d79784ff962f4970631e948 Mon Sep 17 00:00:00 2001 From: dkim19375 <65050767+dkim19375@users.noreply.github.com> Date: Sat, 14 Oct 2023 20:12:14 -0400 Subject: [PATCH] Fix rust formatting check --- .github/workflows/check-format.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 8ae5321..3d4fe8c 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -8,12 +8,13 @@ env: CARGO_TERM_COLOR: always jobs: - build: + check-format: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: Set cargo fmt output run: export FMT_OUTPUT=$(cargo fmt --message-format short) - name: Print cargo fmt output run: echo $FMT_OUTPUT - name: Check cargo fmt output - run: if [ -z $FMT_OUTPUT ]; then exit 1; fi \ No newline at end of file + run: if [ -n $FMT_OUTPUT ]; then exit 1; fi \ No newline at end of file