From 7607ac6826cac3e7b5a849ddfb17812370cf1907 Mon Sep 17 00:00:00 2001 From: Mintu Date: Sun, 11 Feb 2024 16:07:42 +0530 Subject: [PATCH] specified the path --- .github/workflows/link-check.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index 73e34aabd..13dddf582 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -1,16 +1,22 @@ -name: Check Links +name: check Links on: + push: + paths: + - 'pages/blog/posts/**/*.md' + pull_request: - types: [opened, synchronize, reopened] + paths: + - 'pages/blog/posts/**/*.md' jobs: - check-links: + linkChecker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: lycheeverse/lychee-action@v1 - - name: Comment Broken Links - uses: marocchino/sticky-pull-request-comment@v2 + - uses: actions/checkout@v3 + + - name: Link Checker + uses: lycheeverse/lychee-action@v1.9.0 with: - path: lychee/out.md \ No newline at end of file + fail: true + args: '--base . --verbose --no-progress pages/blog/posts/**/*.md'