[PATCH] specialize exception hear (- WIP #154 -) #91
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/markdown-lint.yml | |
--- | |
name: Markdown Lint | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: ["main", "master", "stable"] | |
pull_request: | |
branches: ["main", "master", "stable", feature-*, patch-*, HOTFIX-*] | |
permissions: {} # Setting default permissions to none for enhanced security | |
jobs: | |
markdown-lint: | |
permissions: | |
contents: read | |
statuses: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Apt-Get Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y yamllint npm | |
- name: Lint Workflow YAML | |
run: | | |
yamllint -f github --no-warnings .github/workflows/markdown-lint.yml | |
- name: Install NPM Dependencies | |
run: | | |
sudo npm install -g markdownlint | |
sudo npm install -g markdownlint-cli | |
- name: Lint YAML config for markdown | |
run: | | |
yamllint -f github --no-warnings .markdownlint.yaml | |
- name: Lint Markdown Files with YAML config | |
if: ${{ !cancelled() }} | |
run: | | |
git ls-files --exclude-standard -z -- *.md **/*.md |\ | |
xargs -0 -I{} markdownlint "{}" --config .markdownlint.yaml ; | |
- name: Lint Markdown Files with JSON config | |
if: ${{ !cancelled() }} | |
run: | | |
git ls-files --exclude-standard -z -- *.md **/*.md |\ | |
xargs -0 -I{} markdownlint "{}" --config .markdownlint.json ; |