Skip to content

Commit

Permalink
Preserve newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Feb 12, 2024
1 parent 52a46cb commit 04c3304
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ jobs:
aiken check 2>&1 | tee aiken.log || RESULT=$?
if [ $RESULT -ne 0 ]; then
FAILING_TESTS=$(grep "FAIL" aiken.log -A 1)
echo 'FAILING_TESTS="'$FAILING_TESTS'"' >> $GITHUB_ENV
echo "$FAILING_TESTS"
echo 'FAILING_TESTS='"$FAILING_TESTS"'' >> $GITHUB_ENV
cat $GITHUB_ENV
exit $RESULT
fi
- if: failure()
run: |
echo $FAILING_TESTS
echo "$FAILING_TESTS"
- run: aiken build
- uses: actions/github-script@v6
if: failure() && env.FAILING_TESTS != ''
Expand All @@ -38,5 +39,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Tests failed:\n\n\`\`\`${{ env.FAILING_TESTS }}\`\`\``
body: `Tests failed:\n\n\`\`\`\n${{ env.FAILING_TESTS }}\`\`\``
})

0 comments on commit 04c3304

Please sign in to comment.