-
Notifications
You must be signed in to change notification settings - Fork 29
49 lines (43 loc) · 1.14 KB
/
autofix.yaml
File metadata and controls
49 lines (43 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: autofix.ci # needed to securely identify the workflow
on:
pull_request:
push:
branches:
- "*"
permissions:
contents: read
jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip3 install \
-r requirements.txt \
-r requirements-ci.txt
- name: "Linting: autocorrect"
continue-on-error: true
uses: huacnlee/autocorrect-action@v2
with:
args: "--fix"
- name: "Linting: markdownlint-cli2 Part 1"
uses: DavidAnson/markdownlint-cli2-action@v15
continue-on-error: true
with:
fix: true
globs: |
docs/**/*.md
README.md
- name: "Linting: markdownlint-cli2 Part 2"
uses: DavidAnson/markdownlint-cli2-action@v15
continue-on-error: true
with:
fix: true
globs: |
docs/**/*.md
README.md
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef