From 3b2efd6dee11c1becf45fc7b10d577bfb58f3ed7 Mon Sep 17 00:00:00 2001 From: Tomasz Kowalewski Date: Fri, 7 Jun 2024 13:49:13 +0200 Subject: [PATCH] Configure GHA --- .github/workflows/trigger.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger.yaml b/.github/workflows/trigger.yaml index 74dc3f9..55ff132 100644 --- a/.github/workflows/trigger.yaml +++ b/.github/workflows/trigger.yaml @@ -23,7 +23,9 @@ jobs: - 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 }}")" >> $GITHUB_OUTPUT + files="${{ steps.changed-files.outputs.all_changed_files }}" + matrix=$(echo "$files" | jq -nc 'if length == 0 then ["scripts/default.sh"] else . end') + echo "matrix=$matrix" >> $GITHUB_OUTPUT build: needs: [ changed-files ]