Skip to content

Commit bee8306

Browse files
committed
actions: try autofix.ci
1 parent 71bcbd9 commit bee8306

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/autofix.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

.github/workflows/build.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
globs: |
4747
docs/**/*.md
4848
README.md
49-
5049
- name: Stop and report errors if not master
5150
if: github.ref != 'refs/heads/master'
5251
run: |

0 commit comments

Comments
 (0)