From 49532e3bb5f4ce6846440767c815971c89a9a0be Mon Sep 17 00:00:00 2001 From: Ben Rockwood Date: Thu, 5 Oct 2023 16:01:20 -0700 Subject: [PATCH] Correct ordering Signed-off-by: Ben Rockwood --- .github/workflows/providers.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/providers.yaml b/.github/workflows/providers.yaml index 396a85d1f9..3da250f779 100644 --- a/.github/workflows/providers.yaml +++ b/.github/workflows/providers.yaml @@ -39,6 +39,7 @@ jobs: id: providers run: | providers=$(find providers -mindepth 1 -maxdepth 1 -type d -exec basename {} \;) + echo "providers=$(echo -n $providers | jq -Rsc 'split(" ")')" >> $GITHUB_OUTPUT build="" root=$PWD for p in $providers; do @@ -65,15 +66,13 @@ jobs: cd $root done - echo "providers=$(echo -n $build | jq -Rsc 'split(" ")')" >> $GITHUB_OUTPUT + echo "build_list=$(echo -n $build | jq -Rsc 'split(" ")')" >> $GITHUB_OUTPUT - build_all=${{ github.event.inputs.build_all }}} - if [[ $build_all ]]; then + build_all=${{ github.event.inputs.build_all }} + if [[ $build_all == true ]]; then echo "=== BUILD OF ALL PROVIDERS FORCED ===" printf '%s\n' "${providers[@]}" | jq -R . | jq -sc . > providers.json echo "build_list=$(cat providers.json)" >> $GITHUB_OUTPUT - else - echo "build_list=${build}" >> $GITHUB_OUTPUT fi - name: Build List run: |