-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.07 KB
/
postsubmit.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
name: postsubmit
on:
push:
branches: [ main ]
paths:
- 'config/components/edge-iam-v2/targets/**'
jobs:
changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
notonlyconfig: ${{ steps.filter.outputs.notonlyconfig }}
notonlyiamconfig: ${{ steps.filter.outputs.notonlyiamconfig }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
notonlyconfig:
- '!config/**'
notonlyiamconfig:
- '!(config/components/edge-iam-v2/targets/**/**|config/anthos/manifests/namespaces/edge/store/edge-iam-v2/*)'
ci:
needs: changes
runs-on: ubuntu-latest
if: ${{ !startsWith(github.event.head_commit.message, '[generated]') && needs.changes.outputs.notonlyconfig == 'false' && needs.changes.outputs.notonlyiamconfig == 'false' }} # do not trigger for commits generated by postsubmit or contains changes are more than just iam
steps:
- name: Checkout
uses: actions/checkout@v3