From 196c11395b9d78e1c96665f426c932cda5418c36 Mon Sep 17 00:00:00 2001 From: dcaldr <22105838+dcaldr@users.noreply.github.com> Date: Sun, 2 Jul 2023 00:56:01 +0200 Subject: [PATCH 1/3] Create dead-links-check.yml CI that checks for dead links --- .github/workflows/dead-links-check.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/dead-links-check.yml diff --git a/.github/workflows/dead-links-check.yml b/.github/workflows/dead-links-check.yml new file mode 100644 index 00000000..48413cab --- /dev/null +++ b/.github/workflows/dead-links-check.yml @@ -0,0 +1,16 @@ +name: Dead Links Check + +on: + push: + pull_request: + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Link Checker + uses: lycheeverse/lychee-action@v1.8.0 + with: + fail: true From 30d433440cdd85ea0e1105757bf7fb63a56d025f Mon Sep 17 00:00:00 2001 From: Dan <22105838+dcaldr@users.noreply.github.com> Date: Fri, 7 Jul 2023 23:29:21 +0200 Subject: [PATCH 2/3] Squash-Update dead-links-check.yml ci: add: arguments to workflow and clean workflow test commits --- .github/workflows/dead-links-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dead-links-check.yml b/.github/workflows/dead-links-check.yml index 48413cab..dd6c0517 100644 --- a/.github/workflows/dead-links-check.yml +++ b/.github/workflows/dead-links-check.yml @@ -13,4 +13,5 @@ jobs: - name: Link Checker uses: lycheeverse/lychee-action@v1.8.0 with: + args: " --suggest --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude-mail -a 429 --exclude-path *fin7/Resources/Step7/BOOSTWRITE-src/curl/README.md " fail: true From fade69aaf43ab08aa74160916d30386d75f7e968 Mon Sep 17 00:00:00 2001 From: dcaldr <22105838+dcaldr@users.noreply.github.com> Date: Sat, 8 Jul 2023 00:00:01 +0200 Subject: [PATCH 3/3] Update dead-links-check.yml add: accept code 403 as not error Signed-off-by: dcaldr <22105838+dcaldr@users.noreply.github.com> --- .github/workflows/dead-links-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dead-links-check.yml b/.github/workflows/dead-links-check.yml index dd6c0517..4dfef4c4 100644 --- a/.github/workflows/dead-links-check.yml +++ b/.github/workflows/dead-links-check.yml @@ -13,5 +13,5 @@ jobs: - name: Link Checker uses: lycheeverse/lychee-action@v1.8.0 with: - args: " --suggest --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude-mail -a 429 --exclude-path *fin7/Resources/Step7/BOOSTWRITE-src/curl/README.md " + args: " --suggest --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude-mail -a 403,429 --exclude-path *fin7/Resources/Step7/BOOSTWRITE-src/curl/README.md " fail: true