custom
Infrastructure / Check infrastructure definitions (pull_request) Successful in 1m24s Details

This commit is contained in:
Gleb Koval 2023-08-29 03:10:47 +01:00
parent 2a68bca401
commit 120cede54e
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 4 additions and 8 deletions

View File

@ -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)'"