File tree 2 files changed +49
-1
lines changed
2 files changed +49
-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
+ needs : lint
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-python@v5
17
+ with :
18
+ python-version : " 3.11"
19
+
20
+ - name : Install dependencies
21
+ run : |
22
+ pip3 install \
23
+ -r requirements.txt \
24
+ -r requirements-ci.txt
25
+
26
+ - name : " Linting: autocorrect"
27
+ continue-on-error : true
28
+ run : |
29
+ curl -fsSL https://raw.githubusercontent.com/huacnlee/autocorrect/main/install | sh
30
+ autocorrect --fix
31
+
32
+ - name : " Linting: markdownlint-cli2 Part 1"
33
+ uses : DavidAnson/markdownlint-cli2-action@v15
34
+ continue-on-error : true
35
+ with :
36
+ fix : true
37
+ globs : |
38
+ docs/**/*.md
39
+ README.md
40
+
41
+ - name : " Linting: markdownlint-cli2 Part 2"
42
+ uses : DavidAnson/markdownlint-cli2-action@v15
43
+ continue-on-error : true
44
+ with :
45
+ fix : true
46
+ globs : |
47
+ docs/**/*.md
48
+ README.md
49
+ - 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