-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.07 KB
/
actionlint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
# Separate the workflow for actionlint to other workflows, because if a workflow for actionlint is broken actionlint isn't run
name: actionlint
on:
pull_request:
paths:
- .github/workflows/*.yaml
- aqua/actionlint.yaml
- aqua/reviewdog.yaml
permissions: {}
jobs:
actionlint:
uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/actionlint.yaml@813a6d08c08cfd7a08618a89a59bfe78e573597c # v1.0.1
if: |
! github.event.pull_request.head.repo.fork
with:
aqua_version: v2.29.0
permissions:
pull-requests: write
contents: read
actionlint_fork:
# Lint GitHub Actions Workflows by actionlint.
timeout-minutes: 30
if: github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.29.0
- run: actionlint
env:
GITHUB_TOKEN: ${{github.token}}