fix: speed-up check playbooks CI
This commit is contained in:
parent
93ee384dfa
commit
c6dc80b1ee
4
.github/workflows/infra.yaml
vendored
4
.github/workflows/infra.yaml
vendored
@ -33,9 +33,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check playbooks
|
- name: Check playbooks
|
||||||
run: |
|
run: |
|
||||||
for file in $(find . -wholename "*/infra/*playbook.yaml" -type f); do
|
ansible-playbook --inventory ./inventory --syntax-check $(find . -wholename "*/infra/*playbook.yaml" -type f)
|
||||||
ansible-playbook --inventory ./inventory --syntax-check "$file"
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Get changed playbooks
|
- name: Get changed playbooks
|
||||||
id: files
|
id: files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user