Skip to content

Commit

Permalink
PR Test Autocomment: Include Errors
Browse files Browse the repository at this point in the history
Currently, only `yarn all`'s stdout is commented. However,
yarn may also produce relevant stdout, so we should include it.

Additionally, comment yarn output even if it fails.
  • Loading branch information
NoRePercussions committed Jul 5, 2024
1 parent 5ec44f8 commit c9dee1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
echo ${{ github.event.number }} | tee ./pr/number
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "all_result<<$EOF" >> "$GITHUB_ENV"
yarn all >> "$GITHUB_ENV"
yarn all >> "$GITHUB_ENV" 2&>1 || true # proceed even if yarn fails
echo "$EOF" >> "$GITHUB_ENV"
id: all
- uses: ./
Expand Down

0 comments on commit c9dee1a

Please sign in to comment.