From de9e59fb47bd2a8b9a831afeaceb57347adcec14 Mon Sep 17 00:00:00 2001 From: "Federico M. Facca" Date: Tue, 17 Dec 2024 20:56:46 +0100 Subject: [PATCH] Update markdown.yaml --- .github/workflows/markdown.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 1ddfad3..f7f07e5 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -110,6 +110,31 @@ jobs: git push - name: Fix apparmor issue for puppeteer run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns + - name: Default configuration for link checker + run: | + FILE=${{ inputs.config-link-path || '.github/config/.linkspector.yml' }} + if [ -f $FILE ]; then + echo "'$FILE' Exists" + else + # Write content to the file + cat < "$FILE" + dirs: + - . + excludedDirs: + - vendor + useGitIgnore: true + aliveStatusCodes: + - 200 + - 201 + - 204 + - 206 + - 429 + ignorePatterns: + - pattern: '^http(s?)://localhost' + - pattern: '^https://github.com/orgs/zaphiro-technologies/' + - pattern: '^https://github.com/zaphiro-technologies/' + EOF + fi - name: Check links uses: umbrelladocs/action-linkspector@v1 with: