diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index de6a1270..f8e6bba0 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -36,18 +36,11 @@ jobs: version: latest args: latest --remove-prefix - - name: check-chart-version + - name: bump-chart-version run: | VERSION=${{ steps.latest-no-v.outputs.output }} - APP_VERSION=$(grep '^appVersion:' ./deploy/ydb-operator/Chart.yaml | awk '{print $2}' | tr -d '"') - CHART_VERSION=$(grep '^version:' ./deploy/ydb-operator/Chart.yaml | awk '{print $2}' | tr -d '"') - - if [ "$APP_VERSION" != "$VERSION" ] || [ "$CHART_VERSION" != "$VERSION" ]; then - echo "Version mismatch: appVersion ($APP_VERSION) or version ($CHART_VERSION) does not match expected version ($VERSION). You most likely forgot to bump the version in Chart.yaml, please do so." - exit 1 - else - echo "Version matches: appVersion ($APP_VERSION) and version ($CHART_VERSION) are both $VERSION." - fi + sed -i "s/^appVersion:.*/appVersion: \"$VERSION\"/" ./deploy/ydb-operator/Chart.yaml + sed -i "s/^version:.*/version: \"$VERSION\"/" ./deploy/ydb-operator/Chart.yaml - name: Create Pull Request uses: peter-evans/create-pull-request@v7