Skip to content

Commit

Permalink
Fix rust formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed Oct 15, 2023
1 parent 6c219ba commit bf9fa4d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
run: echo "FMT_OUTPUT=$(cargo fmt --message-format short)" >> $GITHUB_ENV
- name: Print cargo fmt output
run: echo $FMT_OUTPUT
run: echo "${{ env.FMT_OUTPUT }}"
- name: Check cargo fmt output
run: if [ -z $FMT_OUTPUT ]; then exit 1; fi
run: if [ -n "${{ env.FMT_OUTPUT }}" ]; then exit 1; fi

0 comments on commit bf9fa4d

Please sign in to comment.