-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.38 KB
/
pull_request.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
38
39
40
41
42
43
44
45
46
47
48
name: pull request
on: pull_request
jobs:
path-filter:
# Get changed files to filter jobs
timeout-minutes: 10
outputs:
update-aqua-checksums: ${{steps.changes.outputs.update-aqua-checksums}}
renovate-config-validator: ${{steps.changes.outputs.renovate-config-validator}}
ghalint: ${{steps.changes.outputs.ghalint}}
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
with:
filters: |
renovate-config-validator:
- renovate.json5
- .github/workflows/pull_request.yaml
- .github/workflows/wc-renovate-config-validator.yaml
status-check:
# This job is used for main branch's branch protection rule's status check.
# If all dependent jobs succeed or are skipped this job succeeds.
timeout-minutes: 10
runs-on: ubuntu-latest
needs:
- renovate-config-validator
- prettier
permissions: {}
if: failure()
steps:
- run: exit 1
renovate-config-validator:
uses: ./.github/workflows/wc-renovate-config-validator.yaml
needs: path-filter
if: needs.path-filter.outputs.renovate-config-validator == 'true'
permissions:
contents: read
prettier:
uses: ./.github/workflows/wc-prettier.yaml
permissions:
contents: write