Skip to content

Commit

Permalink
Use lycheeverse/lychee-action instead
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Feb 11, 2021
1 parent ce62f80 commit 6c977ed
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This flow checks the links in markdown and HTML files
# This workflow checks the links in markdown and remote HTML files
name: Check links

on:
Expand All @@ -14,26 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checkout current git repository to the "repository" diretory
- name: Checkout
uses: actions/checkout@v2.3.3
with:
path: repository

# Checkout gh-pages branch to the "documentation" directory
- name: Checkout gh-pages branch
uses: actions/checkout@v2.3.3
with:
ref: gh-pages
path: documentation
uses: actions/checkout@v2.3.4

- name: Check links in plain-text and HTML files
uses: peter-evans/link-checker@v1.2.2
- name: Link Checker
uses: lycheeverse/lychee-action@v1.0.3
with:
args: |
-v -r repository/* documentation/dev/ \
-x https://forum.generic-mapping-tools.org \
-x https://github.com/GenericMappingTools/pygmt
args: --verbose https://www.pygmt.org/dev/

- name: Show output
run: cat link-checker/out.md

0 comments on commit 6c977ed

Please sign in to comment.