Skip to content

Commit

Permalink
Update markdown-link-check.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Jan 20, 2025
1 parent f4833ad commit 457aebd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@ jobs:
run: |
echo "Linkspector Ubuntu Workaround for: https://github.com/UmbrellaDocs/action-linkspector/issues/32"
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Check and Create Linkspector Configuration
run: |
CONFIG_FILE=".linkspector.yml"
if [ ! -f "$CONFIG_FILE" ]; then
echo "Configuration file not found. Creating a new one."
cat <<EOL > $CONFIG_FILE
dirs:
- .
useGitIgnore: true
ignorePatterns:
- pattern: '^doc:.*$'
replacementPatterns:
- pattern: "#gh-dark-mode-only"
replacement: ""
- pattern: "#gh-light-mode-only"
replacement: ""
EOL
else
echo "Configuration file exists. Skipping creation."
fi
- name: Linkspector
uses: umbrelladocs/action-linkspector@v1
with:
Expand Down

0 comments on commit 457aebd

Please sign in to comment.