From d741d52dbd2870aa65e785efa599ea36cbf1f076 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Sun, 23 Mar 2025 06:42:51 +0100 Subject: [PATCH] Upload the debug logging for easier solving tldr-bot issues (#16001) --- .github/workflows/ci.yml | 7 +++++++ scripts/test.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9968bda759..c264d5435f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,13 @@ jobs: - name: Test run: npm test + - name: Upload test logging + if: github.repository == 'tldr-pages/tldr' && github.event.pull_request.number != '' + uses: actions/upload-artifact@v4 + with: + name: debug.log + path: debug.log + - name: Build run: bash scripts/build.sh diff --git a/scripts/test.sh b/scripts/test.sh index d32574e27e..de54054d01 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -121,7 +121,7 @@ function run_tests_pr { # Additional checks for GitHub Actions pull request builds. # Only taken as suggestions, does not make the build fail. function run_checks_pr { - msgs=$(bash scripts/check-pr.sh) + msgs=$(bash scripts/check-pr.sh -v) if [[ -n $msgs ]]; then echo -e "\nCheck PR reported the following message(s):\n$msgs\n" >&2