-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1001 Bytes
/
Copy pathlint-workflow-files.yml
File metadata and controls
39 lines (30 loc) · 1001 Bytes
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
name: "Lint GitHub Actions workflows"
on:
pull_request:
paths:
- ".github/**"
permissions:
contents: read
jobs:
actionlint:
uses: "mimmi20/ci/.github/workflows/lint-actions.yml@8.5"
with:
skip-nasm-install: true
skip-libimagequant-install: true
skip-libpng-install: true
skip-librabbitmq-install: true
skip-libgif-install: true
# This is a meta job to avoid to have to constantly change the protection rules
# whenever we touch the matrix.
lint-status:
name: "Lint Status"
runs-on: "ubuntu-latest"
if: always()
needs: "actionlint"
steps:
- name: Failing run
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled') }}
run: exit 1
- name: Successful run
if: ${{ !(contains(needs.*.result, 'failure')) && !(contains(needs.*.result, 'skipped')) && !(contains(needs.*.result, 'cancelled')) }}
run: exit 0