From 7b0f225667415e791910fbcc1a54598b608df8dc Mon Sep 17 00:00:00 2001 From: Niall Byrne <9848926+niall-byrne@users.noreply.github.com> Date: Mon, 25 Apr 2022 09:11:26 -0400 Subject: [PATCH] ci(GITHUB): upgrade workflow, bypass restriction --- .github/workflows/self-test.yml | 3 ++- cookiecutter.json | 2 +- .../.github/config/markdown.link.check.json | 7 +++++++ {{cookiecutter.project_slug}}/.github/workflows/push.yml | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 {{cookiecutter.project_slug}}/.github/config/markdown.link.check.json diff --git a/.github/workflows/self-test.yml b/.github/workflows/self-test.yml index a513a96e..63cd67ea 100644 --- a/.github/workflows/self-test.yml +++ b/.github/workflows/self-test.yml @@ -47,8 +47,9 @@ jobs: WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} - name: Documentation Test -- Check Markdown Links For Readme - uses: gaurav-nelson/github-action-markdown-link-check@1.0.12 + uses: gaurav-nelson/github-action-markdown-link-check@1.0.13 with: + config-file: 'template/{{cookiecutter.project_slug}}/.github/config/markdown.link.check.json' use-quiet-mode: 'no' use-verbose-mode: 'yes' folder-path: 'template, template/.github/workflows' diff --git a/cookiecutter.json b/cookiecutter.json index 4d08c552..adb5f987 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -8,7 +8,7 @@ "author": "Niall Byrne", "company": "Shared Vision Solutions", "email": "niall@niallbyrne.ca", - "_GITHUB_ACTION_MARKDOWN_LINK_CHECK": "gaurav-nelson/github-action-markdown-link-check@1.0.12", + "_GITHUB_ACTION_MARKDOWN_LINK_CHECK": "gaurav-nelson/github-action-markdown-link-check@1.0.13", "_GITHUB_GENERATE_CHANGELOG_ACTION": "scottbrenner/generate-changelog-action@v1.3.3", "_GITHUB_GITLEAKS_ACTION": "zricethezav/gitleaks-action@v1.6.0", "_GITHUB_PUSH_ACTION": "ad-m/github-push-action@v0.6.0" diff --git a/{{cookiecutter.project_slug}}/.github/config/markdown.link.check.json b/{{cookiecutter.project_slug}}/.github/config/markdown.link.check.json new file mode 100644 index 00000000..09943681 --- /dev/null +++ b/{{cookiecutter.project_slug}}/.github/config/markdown.link.check.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^https://docs.github.com/" + } + ] +} \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/.github/workflows/push.yml b/{{cookiecutter.project_slug}}/.github/workflows/push.yml index 26858d4d..6afc1809 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/push.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/push.yml @@ -84,6 +84,7 @@ jobs: - name: Documentation Test -- Documentation Validation uses: {% endraw %}{{ cookiecutter._GITHUB_ACTION_MARKDOWN_LINK_CHECK }}{% raw %} with: + config-file: './github/config/markdown.link.check.json' use-quiet-mode: 'no' use-verbose-mode: 'yes'