Init action. #2
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: Lint | |
on: pull_request | |
# Detect if this action is already running, and cancel it. | |
# This most likely happened because a second push has been made to a branch. | |
concurrency: | |
group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
actionlint: | |
name: GitHub Actions | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: reviewdog/action-actionlint@v1 | |
markdownlint: | |
name: Markdown | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run markdownlint | |
uses: DavidAnson/markdownlint-cli2-action@v16 | |
yamllint: | |
name: YAML | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Yamllint | |
uses: frenck/[email protected] | |
with: | |
strict: true |