From 1cfddf036a638f2f04c40736fdc91603c25dbaa5 Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Mon, 23 Oct 2023 12:16:36 +0200 Subject: [PATCH 1/4] Link check workflow --- .github/workflows/link-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/link-check.yml diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml new file mode 100644 index 00000000..352cb029 --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,19 @@ +name: Link check + +on: + pull_request: + branches: + - main + schedule: + - cron: "0 9 * * 1" + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + folder-path: '**/' From 3d36f3ed2942e73dfcbfdc4e7051163decfe320e Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Mon, 23 Oct 2023 12:19:54 +0200 Subject: [PATCH 2/4] Test a fix --- .github/workflows/link-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index 352cb029..ba464a5b 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -16,4 +16,4 @@ jobs: with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' - folder-path: '**/' + folder-path: './' From b91cac2b8e1fbca16147b39874cd70143c46cdae Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Mon, 23 Oct 2023 12:39:03 +0200 Subject: [PATCH 3/4] Updates --- .github/workflows/link-check.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index ba464a5b..613b6a32 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -1,11 +1,9 @@ -name: Link check +name: Link check for PRs on: pull_request: branches: - main - schedule: - - cron: "0 9 * * 1" jobs: markdown-link-check: @@ -17,3 +15,4 @@ jobs: use-quiet-mode: 'yes' use-verbose-mode: 'yes' folder-path: './' + check-modified-files-only: 'yes' From 98d12d15f348f44a822d2d6bec4bc12d5fe8a7ee Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Mon, 23 Oct 2023 12:43:51 +0200 Subject: [PATCH 4/4] Fixes --- .github/workflows/link-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index 613b6a32..09e3efb9 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -9,10 +9,11 @@ jobs: markdown-link-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 - uses: gaurav-nelson/github-action-markdown-link-check@v1 with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' folder-path: './' + base-branch: 'main' check-modified-files-only: 'yes'