From 583549c3ac9c55b8333c15d711324c74bed51449 Mon Sep 17 00:00:00 2001 From: Tomasz Kowalewski Date: Fri, 7 Jun 2024 13:42:53 +0200 Subject: [PATCH] Configure GHA --- .github/workflows/trigger.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: