Skip to content

Commit d741d52

Browse files
Upload the debug logging for easier solving tldr-bot issues (#16001)
1 parent 25f9b19 commit d741d52

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: .github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
- name: Test
4040
run: npm test
4141

42+
- name: Upload test logging
43+
if: github.repository == 'tldr-pages/tldr' && github.event.pull_request.number != ''
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: debug.log
47+
path: debug.log
48+
4249
- name: Build
4350
run: bash scripts/build.sh
4451

Diff for: scripts/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function run_tests_pr {
121121
# Additional checks for GitHub Actions pull request builds.
122122
# Only taken as suggestions, does not make the build fail.
123123
function run_checks_pr {
124-
msgs=$(bash scripts/check-pr.sh)
124+
msgs=$(bash scripts/check-pr.sh -v)
125125

126126
if [[ -n $msgs ]]; then
127127
echo -e "\nCheck PR reported the following message(s):\n$msgs\n" >&2

0 commit comments

Comments
 (0)