Skip to content

Commit

Permalink
feat(github-action): add actionlint to lint against gha yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
oycyc committed Sep 1, 2024
1 parent 491cd45 commit df3b7ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: trunk-io/trunk-action@v1

conventional-commit-title-check:
runs-on: ubuntu-latest
permissions:
Expand All @@ -28,3 +29,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: true

action-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: 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 df3b7ba

Please sign in to comment.