Skip to content

Commit 92226b0

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

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.github/workflows/autofix.yaml

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

.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)