mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
ci: 🧠
This commit is contained in:
parent
92f311aaec
commit
a9a558b3dc
1 changed files with 2 additions and 5 deletions
7
.github/workflows/charts-test.yaml
vendored
7
.github/workflows/charts-test.yaml
vendored
|
@ -40,11 +40,8 @@ jobs:
|
||||||
if: inputs.chartChanges != ''
|
if: inputs.chartChanges != ''
|
||||||
run: |
|
run: |
|
||||||
EXCLUDED=$(yq eval '.excluded-charts-install | .. style="flow"' .ci/ct/ct.yaml)
|
EXCLUDED=$(yq eval '.excluded-charts-install | .. style="flow"' .ci/ct/ct.yaml)
|
||||||
echo $EXCLUDED
|
CHARTS_JSON=$(yq --null-input -o json eval '"${{ inputs.chartChanges }}" | split(" ")')
|
||||||
CHARTS_JSON=$(yq --null-input eval '"${{ inputs.chartChanges }}" | split(" ") | .. style="flow"')
|
OUTPUT_JSON=$(yq --null-input -o json eval "$CHARTS_JSON - $EXCLUDED")
|
||||||
echo $CHARTS_JSON
|
|
||||||
OUTPUT_JSON=$(yq --null-input eval "$CHARTS_JSON - $EXCLUDED | .. style=\"flow\"")
|
|
||||||
echo $OUTPUT_JSON
|
|
||||||
echo ::set-output name=charts::${OUTPUT_JSON}
|
echo ::set-output name=charts::${OUTPUT_JSON}
|
||||||
if [[ $(echo ${OUTPUT_JSON} | jq -c '. | length') -gt 0 ]]; then
|
if [[ $(echo ${OUTPUT_JSON} | jq -c '. | length') -gt 0 ]]; then
|
||||||
echo "::set-output name=detected::true"
|
echo "::set-output name=detected::true"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue