Skip to content

Commit

Permalink
OPSEXP-2439 Exclude linter_values.yaml from helm ent workflow (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Jan 25, 2024
1 parent ecebf5c commit 6fc5619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/charts-as-json/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
run: |
for CHART_ROOT in ${{ inputs.charts-root }}/*/; do
CHART=$(basename $CHART_ROOT)
VALUES_FILES=$(ls -r ${{ inputs.charts-root }}/"${CHART}"/*values.yaml || true)
VALUES_FILES=$(find ${{ inputs.charts-root }}/"${CHART}" -type f -name "*values.yaml" ! -name "linter_values.yaml" -maxdepth 1)
VALUES=${VALUES_FILES//${CHART_ROOT}/}
yq e "$YQ_FILTER" "${{ inputs.charts-root }}/${CHART}/Chart.yaml" | \
jq -c --arg v "${VALUES}" '.values=($v | split("\n"))' > /tmp/outputs_${CHART}.json
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/helm-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- helm/**
- test/postman/helm/**
- .github/workflows/helm*
- .github/actions/charts-as-json/**
push:
branches:
- master
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
timeout-minutes: 10
needs:
- build_vars
name: Helm ${{ matrix.name }} ${{ matrix.values }}
name: ${{ matrix.values }} on ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 6fc5619

Please sign in to comment.