Merge pull request #180 from 23prime/sync-upstream-25771240761 #405
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: Check Markdown | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/check-markdown.yml" | |
| - ".markdownlint-cli2.jsonc" | |
| - "mise.lock" | |
| pull_request: | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/check-markdown.yml" | |
| - ".markdownlint-cli2.jsonc" | |
| - "mise.lock" | |
| permissions: {} | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install mise and setup | |
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 | |
| with: | |
| install: true | |
| install_args: "markdownlint-cli2" | |
| cache: true | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Fix | |
| run: mise md-fix | |
| - name: Commit and Push | |
| uses: 23prime/simple-commit-and-push@15fb653b9591afde3bffb82a906a9af2aede1616 # v1.0.0 | |
| with: | |
| commit-message: "Auto fix by workflow" | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check | |
| run: mise md-check |