Merge pull request #212 from nathan-weinberg/ci #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
# SPDX-License-Identifier: Apache-2.0 | |
name: Lint GitHub Actions workflows | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- '.github/**' | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- '.github/**' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
actionlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download actionlint | |
id: get_actionlint | |
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.27 | |
- name: Check workflow files | |
run: PATH=".:$PATH" actionlint -color |