Skip to content

Commit ed32c13

Browse files
authored
Update markdownlinter.yml
1 parent 5e5e9e5 commit ed32c13

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

.github/workflows/markdownlinter.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
1-
name: Check Markdown
2-
# Controls when the workflow will run
3-
on: [push, pull_request, workflow_dispatch]
4-
permissions: read-all
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+
510
jobs:
6-
# This workflow contains a single job called "lint"
7-
lint:
11+
fix-lint-issues:
12+
permissions:
13+
contents: write
14+
statuses: write
815
runs-on: ubuntu-latest
916
steps:
10-
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
1117
- uses: actions/checkout@v4
1218
with:
1319
fetch-depth: 0
1420
- name: Super-Linter
15-
uses: super-linter/[email protected]
21+
uses: super-linter/[email protected]
1622
env:
17-
# To report GitHub Actions status checks
1823
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]

0 commit comments

Comments
 (0)