From f665bf11a1c6fed2f53eda30a0330ec6f991e96a Mon Sep 17 00:00:00 2001 From: Tanay Pant <7481165+tanay1337@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:32:56 +0200 Subject: [PATCH] Add link check workflow (#257) * Add link check workflow * Fix errors --------- Co-authored-by: Tanay Pant --- .github/workflows/link-check.yml | 25 ++++++++++++++++++++++++ .github/workflows/report-readability.yml | 1 - .github/workflows/style-check.yml | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) 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..f639ff6f --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,25 @@ +name: Link check + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "0 9 * * 1" + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1.8.0 + + - name: Create Issue From File + if: env.lychee_exit_code != 0 + uses: peter-evans/create-issue-from-file@v4 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue diff --git a/.github/workflows/report-readability.yml b/.github/workflows/report-readability.yml index 648b1700..32d84a68 100644 --- a/.github/workflows/report-readability.yml +++ b/.github/workflows/report-readability.yml @@ -15,4 +15,3 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} glob: '**/*.md' - fail_on_error: true diff --git a/.github/workflows/style-check.yml b/.github/workflows/style-check.yml index 7c0ab268..d3b5842a 100644 --- a/.github/workflows/style-check.yml +++ b/.github/workflows/style-check.yml @@ -14,3 +14,4 @@ jobs: uses: errata-ai/vale-action@reviewdog with: vale_flags: "--glob=*.md" + fail_on_error: true