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 a1315c2 commit c549850
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Test
run: export TEST="abc"
run: echo "abc" >> $GITHUB_ENV
- name: Print test
run: echo $TEST
run: echo $GITHUB_ENV
- name: Set cargo fmt output
run: export FMT_OUTPUT=$(cargo fmt --message-format short)
run: echo cargo fmt --message-format short >> $GITHUB_ENV
- name: Print cargo fmt output
run: echo $FMT_OUTPUT
run: echo $GITHUB_ENV
- name: Check cargo fmt output
run: if [ -n "$(echo "$FMT_OUTPUT"|tr -d '\n')" ]; then exit 1; fi
run: if [ -n $$GITHUB_ENV ]; then exit 1; fi

0 comments on commit c549850

Please sign in to comment.