Skip to content

[Test] Extract relevant linters from super-linter #1

[Test] Extract relevant linters from super-linter

[Test] Extract relevant linters from super-linter #1

Workflow file for this run

name: Linter Actions Workflow
on:
pull_request:
branches:
- main
jobs:
checkpatch:
name: Checkpatch
runs-on: ubuntu-latest
steps:
- name: Checkpatch
uses: open-education-hub/actions/checkpatch@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- name: Spellcheck
uses: open-education-hub/actions/spellcheck@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v45
id: changed-files
with:
files: "**/*.md"
separator: ","
- uses: DavidAnson/markdownlint-cli2-action@v18
if: steps.changed-files.outputs.any_changed == 'true'
with:
config: .github/markdownlint-config.json
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ","