From d29bb541a9d76bde7c9a0a5c2746d238877c6f7e Mon Sep 17 00:00:00 2001 From: YaphetKG Date: Wed, 23 Oct 2024 15:27:07 -0400 Subject: [PATCH] fix dir --- .github/workflows/release-charts.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-charts.yaml b/.github/workflows/release-charts.yaml index 5d82c58e..a056889e 100644 --- a/.github/workflows/release-charts.yaml +++ b/.github/workflows/release-charts.yaml @@ -34,7 +34,7 @@ jobs: set -e # Exit immediately if any command exits with a non-zero status for chart in helm/*/; do if [ -f "$chart/Chart.yaml" ]; then - chart_name=$(basename "$chart") + chart_name=$(yq eval '.name' "$chart/Chart.yaml") version=$(yq eval '.version' "$chart/Chart.yaml") if [ -z "$version" ]; then echo "Error: Could not find version in $chart_name/Chart.yaml" @@ -48,6 +48,7 @@ jobs: echo "Pushing $chart_name with version $version to OCI registry" helm push ./packages/"$chart_name-$version.tgz" oci://containers.renci.org/translator/ + rm ./packages/"$chart_name-$version.tgz" else echo "Error: Chart.yaml not found in $chart" exit 1