Add alternative authenticated module task (#295) #830
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: '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/[email protected] | |
with: | |
files: ${{ matrix.docfile }} | |
config_file: .markdownlint.json | |
- name: Spell-check Markdown files | |
uses: streetsidesoftware/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
incremental_files_only: false | |
config: 'cspell.json' | |
files: ${{ matrix.docfile }} |