File tree Expand file tree Collapse file tree 1 file changed +33
-9
lines changed Expand file tree Collapse file tree 1 file changed +33
-9
lines changed Original file line number Diff line number Diff line change 1
- name : Check Markdown
2
- # Controls when the workflow will run
3
- on : [push, pull_request, workflow_dispatch]
1
+ name : Lint
2
+
3
+ on : # yamllint disable-line rule:truthy
4
+ push : null
5
+ pull_request : null
6
+
7
+ permissions :
8
+ contents : read
9
+
4
10
jobs :
5
- # This workflow contains a single job called "lint"
6
- lint :
11
+ fix-lint-issues :
12
+ permissions :
13
+ contents : write
14
+ statuses : write
7
15
runs-on : ubuntu-latest
8
16
steps :
9
- # Checks-out repository under $GITHUB_WORKSPACE, so job can access it
10
17
- uses : actions/checkout@v4
11
- # Runs markdown linter on all markdown files
12
- - uses : DavidAnson/markdownlint-cli2-action@v20
13
18
with :
14
- globs : ' **/*.md'
19
+ fetch-depth : 0
20
+ - name : Super-Linter
21
+ uses :
super-linter/[email protected]
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ FIX_SHELL_SHFMT : true
25
+ FIX_YAML_PRETTIER : true
26
+ - name : Commit and push linting fixes
27
+ # Run only on:
28
+ # - Pull requests
29
+ # - Not on the default branch
30
+ if : >
31
+ github.event_name == 'pull_request' &&
32
+ github.ref_name != github.event.repository.default_branch
33
+ uses : stefanzweifel/git-auto-commit-action@v5
34
+ with :
35
+ branch : ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
36
+ commit_message : " chore: fix linting issues"
37
+ commit_user_name : super-linter
38
+ commit_user_email :
[email protected]
You can’t perform that action at this time.
0 commit comments