only run playbooks
Infrastructure / Check infrastructure definitions (push) Successful in 1m24s Details
Infrastructure / Deploy modified infrastructure (push) Successful in 1m26s Details

This commit is contained in:
Gleb Koval 2023-09-02 19:01:05 +01:00
parent 7db11c6506
commit 3e69b5bc6a
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 4 additions and 1 deletions

View File

@ -61,5 +61,8 @@ jobs:
- name: Run changed playbooks
run: |
for file in ${{ steps.files.outputs.all_changed_files }}; do
ansible-playbook --inventory ./inventory "$file"
if [[ "$file" == *"-playbook.yaml" ]];
then
ansible-playbook --inventory ./inventory "$file"
fi
done