Skip to content

Commit

Permalink
Add a workflow to lint github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brezak committed Apr 1, 2024
1 parent 01649f1 commit db3bf6a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint workflow files

on:
merge_group:
pull_request:
push:
branches:
- main

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: ${{github.event_name == 'pull_request'}}

jobs:
lint-github-actions:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: |
curl -o actionlint-matcher.json https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json
echo "::add-matcher::actionlint-matcher.json"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash

0 comments on commit db3bf6a

Please sign in to comment.