Fix potential github action smells #69
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
name: document-lint | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
- "1.8" | |
- "2.0" | |
jobs: | |
document-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: npm install -g [email protected] | |
# Run markdown lint with the following rules disabled: | |
# no hard tabs, line length, no duplicate heading, ordered list item prefix, no inline html and no emphasis as heading | |
- name: use markdownlint-cli to lint markdown file | |
run: | | |
find ./ -name "*.md" | grep -v vendor | grep -v commandline | grep -v .github | grep -v swagger | grep -v api | \ | |
xargs markdownlint --disable MD010 MD013 MD024 MD029 MD033 MD036 -- |