Skip to content

Commit 300707a

Browse files
authored
Broken links check (AstarNetwork#338)
* Broken links check * config
1 parent b57bdff commit 300707a

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/broken-links.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Broken Links
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "00 18 * * *"
8+
9+
jobs:
10+
build_and_check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18.x
17+
cache: yarn
18+
19+
- name: Install and build
20+
run: |
21+
yarn install --frozen-lockfile
22+
yarn build
23+
24+
- name: Link Checker
25+
id: lychee
26+
uses: lycheeverse/lychee-action@v1.7.0
27+
env:
28+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
29+
with:
30+
args: --verbose --exclude-path ./node_modules/ "./**/*.js" "./**/*.ts" "./**/*.html" "./**/*.json" "./**/*.md"
31+
32+
- name: Create Issue From File
33+
if: env.lychee_exit_code != 0
34+
uses: peter-evans/create-issue-from-file@v4
35+
with:
36+
title: Link Checker Report
37+
content-filepath: ./lychee/out.md
38+
labels: report, automated issue

.lycheeignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore all files
2+
file://.*
3+
4+
# Twitter its API does not like us
5+
https://twitter.com/*

0 commit comments

Comments
 (0)