Skip to content

Commit 90c98c8

Browse files
committed
add link checker only for README.md
1 parent bd6960b commit 90c98c8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# from: https://github.com/marketplace/actions/link-checker
2+
3+
name: Link Check on README.md
4+
5+
on: push
6+
jobs:
7+
linkChecker:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Link Checker
12+
id: lc
13+
uses: peter-evans/link-checker@v1
14+
with:
15+
args: -v -d . -x http://creativecommons.org/licenses README.md
16+
- name: Fail if there were link errors
17+
run: exit ${{ steps.lc.outputs.exit_code }}

0 commit comments

Comments
 (0)