Skip to content

Commit

Permalink
chore(ci): improve script for running locally (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Jun 18, 2024
1 parent 16edb30 commit 5147334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/templateHelmChartRecursivelyToFolder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ targetDir=${2?You need to provide the target directory}

if yq -e '.type == "library"' "$chart/Chart.yaml" >/dev/null; then
echo "Skipping library chart '$chart'" >/dev/stderr
[[ -f "$GITHUB_OUTPUT" ]] && echo "skipped=true" | tee -a "$GITHUB_OUTPUT"
[[ -v GITHUB_OUTPUT ]] && [[ -f "$GITHUB_OUTPUT" ]] && echo "skipped=true" | tee -a "$GITHUB_OUTPUT"
exit 0
else
[[ -f "$GITHUB_OUTPUT" ]] && echo "skipped=false" | tee -a "$GITHUB_OUTPUT"
[[ -v GITHUB_OUTPUT ]] && [[ -f "$GITHUB_OUTPUT" ]] && echo "skipped=false" | tee -a "$GITHUB_OUTPUT"
fi

[[ ! -d "$targetDir" ]] && mkdir -p "$targetDir"
Expand All @@ -30,4 +30,5 @@ for values in "$chart/values.yaml" "$chart/ci/"*-values.yaml; do
"$(dirname "$0")/splitYamlIntoDir" "$newResourcesDir.yaml" "$newResourcesDir"
) &
done
trap 'EC=$?; kill $(jobs -p -r); exit $EC' INT
wait

0 comments on commit 5147334

Please sign in to comment.