From 13efe42e924df66942a33e0395fbd3148e5ccab7 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Wed, 22 May 2024 15:07:52 +0200 Subject: [PATCH] Update --- .github/workflows/links.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index c5e4b5d2..738d25e8 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -137,6 +137,9 @@ jobs: - name: Check URLs with urlchecker 🔬 run: | - if (nr <- nrow(print(urlchecker::url_check(".")))) stop(nr, " bad URL(s)") + bad_urls <- nrow(print(urlchecker::url_check("."))) + if (bad_urls > 0) { + stop("Looks like a total of ", bad_urls, " URL(s) were found! Please correct them.") + } shell: Rscript {0} working-directory: ${{ inputs.package-subdirectory }}