Skip to content

Commit aab4989

Browse files
committed
added action.yaml
1 parent d4f831f commit aab4989

File tree

2 files changed

+51
-38
lines changed

2 files changed

+51
-38
lines changed

.github/workflows/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Check Markdown links
2+
3+
on: push
4+
5+
jobs:
6+
markdown-link-check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: tcort/github-action-markdown-link-check@v1
11+
with:
12+
use-quiet-mode: 'yes'
13+
use-verbose-mode: 'yes'
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
# name: link checker
2-
# on:
3-
# pull_request:
4-
# # pull_request_target:
5-
# # types: [labeled]
6-
# push:
1+
name: link checker
2+
on:
3+
pull_request:
4+
# pull_request_target:
5+
# types: [labeled]
6+
push:
77

8-
# # Declare default permissions as read only.
9-
# permissions: read-all
10-
11-
# jobs:
12-
# lint:
13-
# if: "${{ github.event_name == 'push' || github.event.action != 'labeled' || github.event.label.name == 'tests: run' }}"
14-
# name: lint
15-
# runs-on: ubuntu-latest
16-
# concurrency:
17-
# group: ${{ github.workflow }}-${{ github.ref }}
18-
# cancel-in-progress: true
19-
# permissions:
20-
# contents: "read"
21-
# steps:
22-
# - uses: actions/checkout@v2
23-
# - uses: JustinBeckwith/linkinator-action@v1
24-
# with:
25-
# # linksToSkip: ^(?:(?!.*\.com).)*$
26-
# paths: "**/*.md"
27-
28-
name: Check Markdown links
29-
30-
on: push
8+
# Declare default permissions as read only.
9+
permissions: read-all
3110

3211
jobs:
33-
markdown-link-check:
12+
lint:
13+
if: "${{ github.event_name == 'push' || github.event.action != 'labeled' || github.event.label.name == 'tests: run' }}"
14+
name: lint
3415
runs-on: ubuntu-latest
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
permissions:
20+
contents: "read"
3521
steps:
36-
- uses: actions/checkout@v4
37-
- uses: tcort/github-action-markdown-link-check@v1
38-
with:
39-
use-quiet-mode: 'yes'
40-
use-verbose-mode: 'yes'
41-
config-file: 'mlc_config.json'
42-
folder-path: '.'
43-
max-depth: -1
22+
- uses: actions/checkout@v2
23+
- uses: JustinBeckwith/linkinator-action@v1
24+
with:
25+
# linksToSkip: ^(?:(?!.*\.com).)*$
26+
paths: "**/*.md"
27+
28+
# name: Check Markdown links
29+
30+
# on: push
31+
32+
# jobs:
33+
# markdown-link-check:
34+
# runs-on: ubuntu-latest
35+
# steps:
36+
# - uses: actions/checkout@v4
37+
# - uses: tcort/github-action-markdown-link-check@v1
38+
# with:
39+
# use-quiet-mode: 'yes'
40+
# use-verbose-mode: 'yes'
41+
# config-file: 'mlc_config.json'
42+
# folder-path: '.'
43+
# max-depth: -1

0 commit comments

Comments
 (0)