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 ]