Improve guestregister.service check with fail-fast logic and isolated… #1016
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: 'Markdown' | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| paths: | |
| - 'README.md' | |
| - 'CONTRIBUTING.md' | |
| - 'terraform/aws/README.md' | |
| - 'terraform/azure/README.md' | |
| - 'terraform/gcp/README.md' | |
| - '.github/workflows/markdown.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| markdown_lint: | |
| name: 'Markdown lint' | |
| runs-on: ubuntu-latest | |
| environment: production | |
| strategy: | |
| matrix: | |
| docfile: ['README.md', 'CONTRIBUTING.md', 'terraform/aws/README.md', 'terraform/gcp/README.md', 'terraform/azure/README.md'] | |
| steps: | |
| # Checkout the repository to the GitHub Actions runner | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: markdownlint-cli | |
| uses: nosborn/github-action-markdown-cli@v3.1.0 | |
| with: | |
| files: ${{ matrix.docfile }} | |
| config_file: .markdownlint.json | |
| - name: Spell-check Markdown files | |
| uses: streetsidesoftware/cspell-action@v2.11.0 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| incremental_files_only: false | |
| config: 'cspell.json' | |
| files: ${{ matrix.docfile }} |