-
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (42 loc) · 1.34 KB
/
actions.yml
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
38
39
40
41
42
name: Lint Actions
on:
pull_request:
paths: [.github/**.yml]
types: [synchronize, edited, opened]
push:
paths: [.github/**.yml]
jobs:
skip:
name: Check Duplicate Actions
#continue-on-error: true
runs-on: ubuntu-latest
outputs:
should-skip: ${{ steps.skip-check.outputs.should_skip }}
steps:
- name: Skip Duplicate Actions (Lint Actions)
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5
id: skip-check
actions:
name: Action Workflows
runs-on: ubuntu-latest
needs: skip
if: needs.skip.outputs.should-skip != 'true'
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Review Dog - actionlint
uses: reviewdog/action-actionlint@05c9d7bef25a46caf572df3497afa7082fc111df # v1
yaml:
name: YAML
runs-on: ubuntu-latest
needs: skip
if: needs.skip.outputs.should-skip != 'true'
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Review Dog - yamllint
uses: reviewdog/action-yamllint@4e4ba96d03a0e12a0e71c29e5fef1db309d09201 # v1
with:
yamllint_flags: >-
--config-file ${{github.workspace}}/.github/settings/yamllint.yml
${{github.workspace}}