Skip to content

Commit

Permalink
chore: fix chart_name and chart_version's newline
Browse files Browse the repository at this point in the history
Signed-off-by: Youngjin Jo <youngjinjo@megazone.com>
  • Loading branch information
yjinjo committed Apr 5, 2024
1 parent 3c809ef commit dacf854
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ jobs:
mkdir ./release
for chart in charts/*; do
if [ -d "$chart" ]; then
chart_name=$(basename "$chart")
chart_name=$(basename "$chart" | tr -d '\n')
helm package "$chart" --destination ./release
chart_version=$(grep 'version:' "$chart/Chart.yaml" | cut -d ' ' -f 2)
chart_version=$(grep 'version:' "$chart/Chart.yaml" | cut -d ' ' -f 2 | tr -d '\n')
chart_file="${chart_name}-${chart_version}.tgz"
echo "Processing $chart_file..."
echo "Processing... File path: ./release/$chart_file"
ls -l ./release
git_tag="chart-${chart_name}-${chart_version}"
release_name="${chart_name} Chart Release ${chart_version}"
Expand Down

0 comments on commit dacf854

Please sign in to comment.