Skip to content

Commit ad1e82c

Browse files
authored
Testing release pipeline, attempt 2 (#262)
1 parent 41940ac commit ad1e82c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,11 @@ jobs:
3636
version: latest
3737
args: latest --remove-prefix
3838

39-
- name: check-chart-version
39+
- name: bump-chart-version
4040
run: |
4141
VERSION=${{ steps.latest-no-v.outputs.output }}
42-
APP_VERSION=$(grep '^appVersion:' ./deploy/ydb-operator/Chart.yaml | awk '{print $2}' | tr -d '"')
43-
CHART_VERSION=$(grep '^version:' ./deploy/ydb-operator/Chart.yaml | awk '{print $2}' | tr -d '"')
44-
45-
if [ "$APP_VERSION" != "$VERSION" ] || [ "$CHART_VERSION" != "$VERSION" ]; then
46-
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."
47-
exit 1
48-
else
49-
echo "Version matches: appVersion ($APP_VERSION) and version ($CHART_VERSION) are both $VERSION."
50-
fi
42+
sed -i "s/^appVersion:.*/appVersion: \"$VERSION\"/" ./deploy/ydb-operator/Chart.yaml
43+
sed -i "s/^version:.*/version: \"$VERSION\"/" ./deploy/ydb-operator/Chart.yaml
5144
5245
- name: Create Pull Request
5346
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)