diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 8e8f6e31..d7e8940e 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -9,6 +9,7 @@ on: - main jobs: + provide_scenarios: runs-on: ubuntu-latest steps: @@ -28,17 +29,19 @@ jobs: roles: - 'playbooks/roles/**/**' - id: set-playbooks-matrix - run: echo "matrix={\"playbooks\":${{ steps.changed-files.yaml.playbooks_all_changed_files }}" >> "$GITHUB_OUTPUT" + run: echo "playbooks=${{ steps.changed-files.yaml.playbooks_all_changed_files }}" >> "$GITHUB_OUTPUT" - name: Debug - run: echo ${{ steps.changed-files-yaml.outputs.playbooks_all_changed_files }} + run: echo ${{ steps.changed-files-yaml.outputs.playbooks_all_changed_files }} && echo ${{ steps.set-playbooks-matrix.outputs.playbooks }} outputs: - playbooks_matrix: ${{ steps.set-playbooks-matrix.outputs.matrix }} + playbooks_matrix: ${{ steps.set-playbooks-matrix.outputs.playbooks }} + molecule_playbooks: needs: provide_scenarios runs-on: ubuntu-latest strategy: fail-fast: false - matrix: ${{ fromJSON(needs.provide_scenarios.outputs.playbooks_matrix) }} + matrix: + playbooks: ${{ fromJSON(needs.provide_scenarios.outputs.playbooks) }} steps: - name: Checkout uses: actions/checkout@v4