-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
richelbilderbeek
committed
Feb 28, 2024
1 parent
d9a63db
commit 08ce4c3
Showing
6 changed files
with
24 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
# Check if any links are broken | ||
name: Check links | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 16 * *" | ||
- cron: "0 0 15 * *" | ||
|
||
name: check-links | ||
|
||
jobs: | ||
check_links: | ||
|
||
check-links: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Remove folders that do not care about broken links | ||
run: | | ||
rm -rf development_design | ||
# If there is a valid external link that fails, | ||
# add it to mlc_config.json | ||
- name: External links must be checked, do not allow '0' in the 'aliveStatusCodes' of mlc_config.json | ||
run: if [[ $(grep --regexp "[^0-9]0[^0-9]" mlc_config.json | wc --lines) == "1" ]]; then echo "FOUND"; exit 42; fi | ||
|
||
- name: Internal links must checked, do not allow '400' in the 'aliveStatusCodes' of mlc_config.json | ||
run: if [[ $(grep --regexp "[^0-9]400[^0-9]" mlc_config.json | wc --lines) == "1" ]]; then echo "FOUND"; exit 42; fi | ||
|
||
- uses: lycheeverse/lychee-action@v1.2.0 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
fail: true | ||
config-file: 'mlc_config.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 16 * *" | ||
- cron: "0 0 15 * *" | ||
|
||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 16 * *" | ||
- cron: "0 0 15 * *" | ||
|
||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,7 @@ | ||
Awk | ||
awk | ||
config | ||
faq | ||
github | ||
html | ||
https | ||
io | ||
json | ||
mlc | ||
nl | ||
Pavlin's | ||
pmitev | ||
richel | ||
OSU | ||
Richèl | ||
Uppsala | ||
Richel | ||
richelbilderbeek | ||
sexualized | ||
socio | ||
txt | ||
UPPMAX | ||
wordlist | ||
www | ||
yml | ||
bilderbeek | ||
CLI | ||
colour | ||
CSVs | ||
dataset | ||
gat | ||
kat | ||
Korona | ||
litres | ||
MacOS | ||
metacharacter | ||
oneliner | ||
personnummer | ||
printf | ||
regexlearn | ||
regextester | ||
repo | ||
RSA | ||
se | ||
sed | ||
uppmax | ||
USD | ||
uu | ||
VVS | ||
wc | ||
wd | ||
whitespace | ||
qat | ||
wat | ||
addr | ||
|
||
|
||
Arqus | ||
ENLIGHT | ||
enlight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
{ | ||
"aliveStatusCodes": [200, 403, 418, 503], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^overview/$" | ||
}, | ||
] | ||
"aliveStatusCodes": [200, 403, 418, 503] | ||
} |