-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.04 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
---
# 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@b6a5f966d4504893b2aeb60cf2b0de8946e48504 # v0.5.0
if: |
! github.event.pull_request.head.repo.fork
with:
aqua_version: v2.21.0
permissions:
pull-requests: write
contents: read
actionlint_fork:
# Lint GitHub Actions Workflows by actionlint.
if: github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: aquaproj/aqua-installer@928a2ee4243a9ee8312d80dc8cbaca88fb602a91 # v2.2.0
with:
aqua_version: v2.21.0
- run: actionlint
env:
GITHUB_TOKEN: ${{github.token}}