From 3e69b5bc6ab1c1a6d8ab300de666250f9ce2f89e Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 2 Sep 2023 19:01:05 +0100 Subject: [PATCH] only run playbooks --- .github/workflows/infra.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index b0b971a..c51d7cc 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -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