Skip to content

Commit ef0af6a

Browse files
authored
Merge pull request #2 from sdmx-twg/main
test
2 parents 506bd50 + ed32c13 commit ef0af6a

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

.github/workflows/markdownlinter.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
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+
410
jobs:
5-
# This workflow contains a single job called "lint"
6-
lint:
11+
fix-lint-issues:
12+
permissions:
13+
contents: write
14+
statuses: write
715
runs-on: ubuntu-latest
816
steps:
9-
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
1017
- uses: actions/checkout@v4
11-
# Runs markdown linter on all markdown files
12-
- uses: DavidAnson/markdownlint-cli2-action@v20
1318
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]

0 commit comments

Comments
 (0)