File tree Expand file tree Collapse file tree 3 files changed +20
-56
lines changed
Expand file tree Collapse file tree 3 files changed +20
-56
lines changed Original file line number Diff line number Diff line change @@ -3,34 +3,29 @@ name: Markdown Lint Check
33on :
44 pull_request :
55 paths :
6- - ' **/*.md'
7- push :
8- branches :
9- - main
6+ - " **/*.md"
107
118jobs :
129 markdown-lint :
10+ name : Markdown Lint Check
1311 runs-on : ubuntu-latest
12+
1413 steps :
15- - name : Checkout Code
14+ - name : Checkout Repository
1615 uses : actions/checkout@v4
1716
18- - name : Check if Markdown Files Changed
19- id : check_changes
20- run : |
21- if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E '\.md$'; then
22- echo "changed=true" >> $GITHUB_OUTPUT
23- else
24- echo "changed=false" >> $GITHUB_OUTPUT
25- fi
26-
2717 - name : Install Markdownlint
28- if : steps.check_changes.outputs.changed == 'true'
2918 run : |
3019 sudo apt-get update
3120 sudo apt-get install -y markdownlint-cli
3221
3322 - name : Run Markdownlint Check
34- if : steps.check_changes.outputs.changed == 'true'
3523 run : |
36- markdownlint '**/*.md' --config .markdownlint.json
24+ markdownlint '**/*.md' --config .markdownlint.json || echo "::warning file=.md::Markdown lint issues found"
25+
26+ - name : Post Review Comments (Optional)
27+ if : failure()
28+ uses : thollander/actions-comment-pull-request@v2
29+ with :
30+ message : " ⚠️ Markdown linting found issues! Please review and fix."
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 66 "style" : " backtick"
77 },
88 "emphasis-style" : {
9- "style" : " asterisk"
10- },
11- "extended-ascii" : {
12- "ascii-only" : true
9+ "style" : " underscore"
1310 },
11+ "extended-ascii" : false ,
1412 "fenced-code-language" : {
1513 "allowed_languages" : [
1614 " bash" ,
17- " go" ,
1815 " html" ,
1916 " javascript" ,
2017 " json" ,
2118 " markdown" ,
22- " text"
19+ " text" ,
20+ " go"
2321 ],
2422 "language_only" : true
2523 },
2927 "hr-style" : {
3028 "style" : " ---"
3129 },
32- "line-length" : {
33- "strict" : true ,
34- "code_blocks" : false
35- },
36- "link-image-style" : {
37- "collapsed" : false ,
38- "shortcut" : false ,
39- "url_inline" : false
40- },
30+ "line-length" : false ,
31+ "ol-prefix" : false ,
4132 "no-duplicate-heading" : {
4233 "siblings_only" : true
4334 },
44- "ol-prefix" : {
45- "style" : " ordered"
46- },
47- "proper-names" : {
48- "code_blocks" : false ,
49- "names" : [
50- " Cake.Markdownlint" ,
51- " CommonMark" ,
52- " JavaScript" ,
53- " Markdown" ,
54- " markdown-it" ,
55- " markdownlint" ,
56- " Node.js" ,
57- " Go"
58- ]
59- },
60- "reference-links-images" : {
61- "shortcut_syntax" : true
62- },
63- "strong-style" : {
64- "style" : " asterisk"
65- },
6635 "ul-style" : {
6736 "style" : " dash"
6837 }
Original file line number Diff line number Diff line change 44Forces running containers to stop by sending a ` SIGKILL ` signal. Optionally the signal can be passed, for example:
55
66``` console
7- docker compose kill -s SIGINT
7+ $ docker compose kill -s SIGINT
88```
99
1010### Options
@@ -22,5 +22,5 @@ docker compose kill -s SIGINT
2222Forces running containers to stop by sending a ` SIGKILL ` signal. Optionally the signal can be passed, for example:
2323
2424``` console
25- docker compose kill -s SIGINT
25+ $ docker compose kill -s SIGINT
2626```
You can’t perform that action at this time.
0 commit comments