Skip to content

Commit

Permalink
Test molecule run
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed May 22, 2024
1 parent 7262a89 commit 392462e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/molecule_playbooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ jobs:
with:
files: |
playbooks/*.yml
- name: List all changed files
run: echo '${{ steps.changed-playbooks.outputs.all_changed_files }}' '${{ steps.changed-scenarios.outputs.all_changed_files }}'
- name: Set matrix based on changed files
id: set-scenario-matrix
run: |
PLAYBOOKS=(${playbooks})
PLAYBOOKS=(${{steps.changed-playbooks.outputs.all_changed_files}})
PLAYBOOKS=("${PLAYBOOKS[@]/#playbooks\//playbook-}") # playbooks/foo.yml -> playbook-foo.yml
PLAYBOOKS=("${PLAYBOOKS[@]/%.yml/}") # playbook-foo.yml -> playbook-foo
echo "DEBUG PLAYBOOKS: ${PLAYBOOKS[*]}"
Expand Down

0 comments on commit 392462e

Please sign in to comment.