From 46f77a109bf6574ad40ddcb1da33af9a83424290 Mon Sep 17 00:00:00 2001 From: "Mark C. Miller" Date: Sun, 30 Jun 2024 22:36:08 -0700 Subject: [PATCH] fix pr bad count logic --- .github/workflows/check-urls.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-urls.yml b/.github/workflows/check-urls.yml index 48c5331d1..fa9f088ac 100644 --- a/.github/workflows/check-urls.yml +++ b/.github/workflows/check-urls.yml @@ -100,7 +100,7 @@ jobs: - name: Finalize Check Status if: ${{ github.event_name == 'pull_request' }} run: | - [ $(wc -c utils/LinkChecker/bad_links.txt) -gt 0 ] && exit 1 + [ $(wc -l ../../utils/LinkChecker/bad_links.txt | awk '{print $1}') -gt 0 ] && exit 1 - name: Upload artifact if: always()