This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-27 20:54:27 +02:00
parent 1eec4b77a5
commit 92f311aaec
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC

View file

@ -40,8 +40,11 @@ jobs:
if: inputs.chartChanges != ''
run: |
EXCLUDED=$(yq eval '.excluded-charts-install | .. style="flow"' .ci/ct/ct.yaml)
CHARTS_JSON=$(yq --null-input eval "\"${{ inputs.chartChanges }}\" | split(\" \") | .. style=\"flow\"")
echo $EXCLUDED
CHARTS_JSON=$(yq --null-input eval '"${{ inputs.chartChanges }}" | split(" ") | .. style="flow"')
echo $CHARTS_JSON
OUTPUT_JSON=$(yq --null-input eval "$CHARTS_JSON - $EXCLUDED | .. style=\"flow\"")
echo $OUTPUT_JSON
echo ::set-output name=charts::${OUTPUT_JSON}
if [[ $(echo ${OUTPUT_JSON} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected::true"