-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.12 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
36
37
---
# 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@932d2dbef166b2f6f7e11790954e8245289ffd0d # v1.2.1
if: |
! github.event.pull_request.head.repo.fork
with:
aqua_version: v2.40.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: aquaproj/aqua-installer@f13c5d2f0357708d85477aabe50fd3f725528745 # v3.1.0
with:
aqua_version: v2.40.0
- run: actionlint
env:
GITHUB_TOKEN: ${{github.token}}