mirror of
https://github.com/luong-komorebi/Awesome-Linux-Software.git
synced 2025-01-24 14:23:37 -05:00
run github action weekly rather than on push
This commit is contained in:
parent
4af1acc66b
commit
e551fdbd98
30
.github/workflows/action.yml
vendored
30
.github/workflows/action.yml
vendored
@ -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
|
||||
|
||||
|
10
.github/workflows/markdown.links.config.json
vendored
Normal file
10
.github/workflows/markdown.links.config.json
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"ignorePatterns": [
|
||||
{
|
||||
"pattern": "^http://www.tmeter.ru"
|
||||
},
|
||||
{
|
||||
"pattern": "https://github.com/GoogleChrome/lighthouse/workflows/\uD83D\uDCA1\uD83C\uDFE0/badge.svg"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user