-
-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1016 Bytes
/
main.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
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
ansible: ${{ steps.changes.outputs.ansible }}
kubernetes: ${{ steps.changes.outputs.kubernetes }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
ansible:
- 'ansible/**'
kubernetes:
- 'kubernetes/**'
lint:
uses: ./.github/workflows/lint.yaml
lint-ansible:
needs: changes
if: ${{ needs.changes.outputs.ansible == 'true' }}
uses: ./.github/workflows/lint-ansible.yaml
secrets:
vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
lint-kubernetes:
needs: changes
if: ${{ needs.changes.outputs.kubernetes == 'true' }}
uses: ./.github/workflows/lint-kubernetes.yaml
secrets:
kube-config: ${{ secrets.KUBECONFIG }}