diff --git a/.github/workflows/trigger.yaml b/.github/workflows/trigger.yaml index 1ef4279..91f21ac 100644 --- a/.github/workflows/trigger.yaml +++ b/.github/workflows/trigger.yaml @@ -6,40 +6,28 @@ on: - 'master-gha-OXDEV-8356' jobs: - setup: + changed-files: runs-on: ubuntu-latest -# outputs: -# matrix: ${{ steps.matrix.outputs.value }} + outputs: + matrix: ${{ steps.changed-files.outputs.all_changed_files }} steps: - - uses: actions/checkout@v4 + - name: Checkout recipes + uses: actions/checkout@v4 - name: Get changed files id: changed-files uses: tj-actions/changed-files@v44 - - name: List all changed files - env: - ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} - run: | - for file in ${ALL_CHANGED_FILES}; do - echo "$file was changed" - done -# - name: Retrieve changed and added files -# id: files -# uses: jitterbit/get-changed-files@v1 -# with: -# format: json -# - id: matrix -# run: echo 'value=${{ steps.files.outputs.added_modified }}' >> $GITHUB_OUTPUT -# - run: echo "${{ steps.matrix.outputs.value }}" + with: + matrix: true -# build: -# needs: [ setup ] -# runs-on: ubuntu-latest -# strategy: -# matrix: -# value: ${{ fromJSON(needs.setup.outputs.matrix) }} + build: + needs: [ changed-files ] + runs-on: ubuntu-latest + strategy: + matrix: + value: ${{ fromJSON(needs.changed-files.outputs.matrix) }} -# steps: -# - run: echo "${{ matrix.value }}" + steps: + - run: echo "${{ matrix.files }}" # - name: Checkout SKD # uses: actions/checkout@v4 # with: