From 120cede54ec3effba3dc71ef88611740d919434e Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Tue, 29 Aug 2023 03:10:47 +0100 Subject: [PATCH] custom --- .github/workflows/infra.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 1ec00f9..5f4e516 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -39,14 +39,10 @@ jobs: - name: Get changed playbooks id: changed-playbooks - uses: tj-actions/changed-files@v38 - with: - base_sha: ${{ github.event.pull_request.base.sha }} - files: infra/**-playbook.yaml + run: | + git diff --name-only ${{ github.event.pull_request.base.sha }} HEAD | base64 | xargs -I {} echo "files_b64={}" >> "$GITHUB_OUTPUT" - name: Check modified playbooks run: | - echo "Got changed files: '${{ steps.changed-playbooks.outputs.all_changed_files }}'" - for file in ${{ steps.changed-playbooks.outputs.all_changed_files }}; do - ansible --inventory ./inventory --check "$file" - done + export FILES="${{ steps.changed-playbooks.outputs.files_b64 }}" + echo "Got changed files: '$(echo $FILES | base64 -d | xargs echo)'"