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

View file

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