run github action weekly rather than on push

This commit is contained in:
Luong Vo 2022-10-22 18:16:59 +07:00
parent 4af1acc66b
commit e551fdbd98
No known key found for this signature in database
GPG Key ID: 0E5CF98D50B145D0
2 changed files with 25 additions and 15 deletions

View File

@ -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

View File

@ -0,0 +1,10 @@
{
"ignorePatterns": [
{
"pattern": "^http://www.tmeter.ru"
},
{
"pattern": "https://github.com/GoogleChrome/lighthouse/workflows/\uD83D\uDCA1\uD83C\uDFE0/badge.svg"
}
]
}