diff --git a/.github/workflows/trigger.yaml b/.github/workflows/trigger.yaml index 49b8beb..e101454 100644 --- a/.github/workflows/trigger.yaml +++ b/.github/workflows/trigger.yaml @@ -20,18 +20,11 @@ jobs: files: '**/*.sh' files_ignore: 'parts/**' matrix: true - - name: If no changed recipes then execute for the default one - id: set-matrix - run: | - files="${{ steps.changed-files.outputs.all_changed_files }}" - echo "files=$files" - matrix=$(echo "$files" | jq -nc 'if length == 0 then ["scripts/default.sh"] else . end') - echo "matrix=$matrix" - echo "matrix=$matrix" >> $GITHUB_OUTPUT build: needs: [ changed-files ] runs-on: ubuntu-latest + if: needs.changed-files.outputs.matrix != '[]' strategy: matrix: files: ${{ fromJSON(needs.changed-files.outputs.matrix) }}