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