From c9dee1a48b8c9a073d30fbb6390d0fff5264b0b6 Mon Sep 17 00:00:00 2001 From: NoRePercussions Date: Fri, 5 Jul 2024 19:28:23 -0400 Subject: [PATCH] PR Test Autocomment: Include Errors 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. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 024c279..e80f3e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: ./