File tree 2 files changed +48
-1
lines changed
2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : autofix.ci # needed to securely identify the workflow
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches : [ "master" ]
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ autofix :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-python@v5
16
+ with :
17
+ python-version : " 3.11"
18
+
19
+ - name : Install dependencies
20
+ run : |
21
+ pip3 install \
22
+ -r requirements.txt \
23
+ -r requirements-ci.txt
24
+
25
+ - name : " Linting: autocorrect"
26
+ continue-on-error : true
27
+ run : |
28
+ curl -fsSL https://raw.githubusercontent.com/huacnlee/autocorrect/main/install | sh
29
+ autocorrect --fix
30
+
31
+ - name : " Linting: markdownlint-cli2 Part 1"
32
+ uses : DavidAnson/markdownlint-cli2-action@v15
33
+ continue-on-error : true
34
+ with :
35
+ fix : true
36
+ globs : |
37
+ docs/**/*.md
38
+ README.md
39
+
40
+ - name : " Linting: markdownlint-cli2 Part 2"
41
+ uses : DavidAnson/markdownlint-cli2-action@v15
42
+ continue-on-error : true
43
+ with :
44
+ fix : true
45
+ globs : |
46
+ docs/**/*.md
47
+ README.md
48
+ - uses : autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
Original file line number Diff line number Diff line change 46
46
globs : |
47
47
docs/**/*.md
48
48
README.md
49
-
50
49
- name : Stop and report errors if not master
51
50
if : github.ref != 'refs/heads/master'
52
51
run : |
You can’t perform that action at this time.
0 commit comments