feat(charts): moved to other chart-version format

This commit is contained in:
jklein committed 2026-03-09 23:15:16 +01:00
1 parent 0495c5d3e4
commit 3ff932dc1f
8 files changed
+10 -10

No files matched your search

+3 -3
View File
@@ -61,13 +61,13 @@ jobs:
- name: "Get Chart Version"
run: |
CHART_VERSION=$(grep '^version:' ${{ inputs.chart-name}}/Chart.yaml | awk '{print $2}')
CHART_PART=$(echo $CHART_VERSION | cut -d'-' -f1)
CHART_PART=$(echo $CHART_VERSION | cut -d'+' -f1)
echo "CHART_VERSION=$CHART_PART" >> $GITHUB_ENV
working-directory: ${{ inputs.chart-location }}
- name: "Get new Chart Version"
run: |
APP_VERSION_NORMALIZED=$(echo "${{ inputs.app-version }}" | tr '.' '-')
NEW_VERSION="${CHART_VERSION}-release-${APP_VERSION_NORMALIZED}"
APP_VERSION_NORMALIZED=$(echo "" | tr '-' '.')
NEW_VERSION="${CHART_VERSION}+up${APP_VERSION_NORMALIZED}"
sed -i "s/^version:.*/version: $NEW_VERSION/" ${{ inputs.chart-name }}/Chart.yaml
sed -i "s/^appVersion:.*/appVersion: ${{ inputs.app-version }}/" ${{ inputs.chart-name }}/Chart.yaml
working-directory: ${{ inputs.chart-location }}