Refactor file path in actions-validate.yml and add output for changed files
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
name: Setup Environment
|
name: Setup Environment
|
||||||
description: Prepare the environment for A13labs CI/CD pipelines
|
description: Prepare the environment for A13labs CI/CD pipelines
|
||||||
|
outputs:
|
||||||
|
changed_files:
|
||||||
|
description: The list of changed files in the current pull request
|
||||||
|
value: ${{ steps.get_changed_files.outputs.CHANGED_FILES }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ jobs:
|
|||||||
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
||||||
ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
|
CHANGED_FILES: ${{ steps.get_changed_files.outputs.CHANGED_FILES }}
|
||||||
run: |
|
run: |
|
||||||
cd ansible
|
cd ansible
|
||||||
for PLAYBOOK in $(echo $CHANGED_FILES | grep -oP 'playbook_\K\w+'); do
|
for PLAYBOOK in $(echo $CHANGED_FILES | grep -oP 'playbook_\K\w+'); do
|
||||||
|
|||||||
Reference in New Issue
Block a user