Skip to content

Commit

Permalink
chore: conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
austbot committed Nov 1, 2024
1 parent f93f303 commit 552f20b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
cargo check --quiet 2> >(tee cout.txt)
- name: store check output
shell: bash
if: steps.check.outcome == 'failure'
if: ${{ steps.check.conclusion == 'failure' }}
run: |
OUT_FILE_CONTENT=$(cat cout.txt)
echo "OUT_FILE_CONTENT<<EOF" >> $GITHUB_ENV
echo "$OUT_FILE_CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- uses: exercism/[email protected]
if: steps.check.outcome == 'failure'
if: ${{ steps.check.conclusion == 'failure' }}
with:
github-token: "${{ github.token }}"
config-file: ".github/comment-templates/check.yaml"
Expand All @@ -49,14 +49,14 @@ jobs:
cargo +nightly fmt --all -- --check 1> >(tee fout.txt)
- name: store fmt output
shell: bash
if: steps.fmt.outcome == 'failure'
if: ${{ steps.fmt.conclusion == 'failure' }}
run: |
OUT_FILE_CONTENT=$(cat fout.txt)
echo "OUT_FILE_CONTENT<<EOF" >> $GITHUB_ENV
echo "$OUT_FILE_CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- uses: exercism/[email protected]
if: steps.fmt.outcome == 'failure'
if: ${{ steps.fmt.conclusion == 'failure' }}
with:
github-token: "${{ github.token }}"
config-file: ".github/comment-templates/fmt.yaml"
Expand Down

0 comments on commit 552f20b

Please sign in to comment.