rename workflows to a more explicit name #7
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: Workflows Linter | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/**.yml' | ||
jobs: | ||
actionlint: | ||
name: Run actionlint | ||
runs-on: ubuntu-latest | ||
needs: changes | ||
if: needs.changes.outputs.workflows-changed == 'true' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Run workflow linter | ||
run: | | ||
echo "::add-matcher::.github/actionlint-matcher.json" | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
./actionlint -color | ||
shell: bash |