Skip to content

Commit a2f21c9

Browse files
CI: Improve trigger files on Markdown action (#14941)
This will trigger the action when the markdownlint-cli2 config or the action yaml file are modified.
1 parent 17e244c commit a2f21c9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci-markdown.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ on:
77
push:
88
branches:
99
- "main"
10+
1011
paths:
1112
- "**/*.md"
13+
- ".github/workflows/ci-markdown.yml"
14+
- ".markdownlint-cli2.jsonc"
15+
1216
pull_request:
1317
paths:
1418
- "**/*.md"
19+
- ".github/workflows/ci-markdown.yml"
20+
- ".markdownlint-cli2.jsonc"
21+
1522
workflow_dispatch:
1623

1724
permissions:
@@ -27,10 +34,7 @@ jobs:
2734
runs-on: ubuntu-latest
2835

2936
steps:
30-
- name: Check out the repository
31-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
32-
with:
33-
fetch-depth: 10
37+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3438

35-
- name: Run markdownlint
39+
- name: Run markdownlint-cli2
3640
uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v21.0.0

0 commit comments

Comments
 (0)