Skip to content

Commit

Permalink
fix/check links (#787)
Browse files Browse the repository at this point in the history
* ci: Markdownのリンク切れチェックをlycheeに変更

* ci: Markdownのリンク切れチェックを強化

- 毎週定期実行されるように変更
- ファイルパスによるフィルタリングを追加

* chore: packages.jsonとtsconfig.jsonにschemaを追加
  • Loading branch information
s3igo authored Dec 23, 2024
1 parent 985e30c commit da92221
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- main
paths:
- '.github/workflows/check-links.yml'
- 'src/content/posts/*.md'
schedule:
- cron: '0 0 * * 0' # 毎週

jobs:
markdown-link-check:
Expand All @@ -14,7 +19,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Check Markdown links
uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
uses: lycheeverse/lychee-action@v2
with:
use-verbose-mode: 'yes'
folder-path: './src/content/posts/'
args: --verbose --no-progress './src/content/posts/*.md'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "blog",
"type": "module",
"version": "0.1.0",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"baseUrl": ".",
Expand Down

0 comments on commit da92221

Please sign in to comment.