Skip to content

Commit d9a859b

Browse files
fixed issues
1 parent 9e519c7 commit d9a859b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/cd.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ jobs:
1818
run: cargo install lychee
1919

2020
- name: Check external links
21-
run: lychee --verbose --exclude-mail --no-progress ./**/*.md
21+
id: check_links
22+
run: lychee --verbose --exclude-mail --no-progress ./**/*.md | tee lychee-output.txt
23+
24+
- name: Fail CI if broken links exist
25+
run: |
26+
if grep -q "🚫" lychee-output.txt; then
27+
echo "❌ Broken links found! CI is failing."
28+
exit 1
29+
fi
2230
2331
maven-cd:
2432
needs: validate-urls

.github/workflows/link-check.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check External Links
1+
name: Validate External Links
22

33
on:
44
pull_request:
@@ -18,4 +18,12 @@ jobs:
1818
run: cargo install lychee
1919

2020
- name: Run lychee to check links
21-
run: lychee --verbose --exclude-mail --no-progress ./**/*.md
21+
id: lychee_check
22+
run: lychee --verbose --exclude-mail --no-progress ./**/*.md | tee lychee-output.txt
23+
24+
- name: Fail CI if broken links exist
25+
run: |
26+
if grep -q "🚫" lychee-output.txt; then
27+
echo "Broken links found! CI is failing."
28+
exit 1
29+
fi

0 commit comments

Comments
 (0)