Merge pull request #3909 from spidernet-io/robot/update_cni_version-1… #420
This file contains 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: Auto MarkDown Lint | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
- github_pages | |
paths: | |
- "**.md" | |
pull_request: | |
branches: | |
- main | |
- release-* | |
- github_pages | |
paths: | |
- "**.md" | |
# checkout all markdown | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: "check all md for branch, sha, tag" | |
required: true | |
default: main | |
jobs: | |
markdown-link-check: | |
name: Markdown Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.ref }} | |
- name: Checkout | |
if: ${{ github.event_name != 'workflow_dispatch' }} | |
uses: actions/checkout@v4 | |
- name: markdownlint-cli | |
uses: nosborn/[email protected] | |
with: | |
files: . | |
config_file: ".github/markdownlint.yaml" | |
ignore_path: ".github/markdownlintignore" | |
# - name: Run Spell Lint | |
# run: | | |
# make lint-markdown-spell |