34 lines
763 B
YAML
34 lines
763 B
YAML
name: Actionlint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- ".github/workflows/**"
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- ".github/workflows/**"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
actionlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Download actionlint
|
|
env:
|
|
ACTIONLINT_VERSION: "1.7.12"
|
|
run: |
|
|
set -euo pipefail
|
|
curl -fsSLO "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
|
tar -xzf "actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
|
|
|
- name: Run actionlint
|
|
run: ./actionlint -color
|