diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index b0646f0..eb89521 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,20 +1,20 @@ -name: Check Markdown links - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - +name: Markdown Links Check +# runs every monday at 9 am on: - push: - branches: - - master - pull_request: - branches: - - master + schedule: + - cron: "0 9 * * 1" jobs: - markdown-link-check: + check-links: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + # checks all markdown files from root but ignores subfolders + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.github/workflows/markdown.links.config.json' + max-depth: 0 + file-path: README.md + diff --git a/.github/workflows/markdown.links.config.json b/.github/workflows/markdown.links.config.json new file mode 100644 index 0000000..c209480 --- /dev/null +++ b/.github/workflows/markdown.links.config.json @@ -0,0 +1,10 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://www.tmeter.ru" + }, + { + "pattern": "https://github.com/GoogleChrome/lighthouse/workflows/\uD83D\uDCA1\uD83C\uDFE0/badge.svg" + } + ] +}