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: