Skip to content

Commit 97e93dc

Browse files
committed
wip
1 parent f298e65 commit 97e93dc

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ jobs:
2929
version: latest
3030
args: latest
3131

32+
- name: print the latest version without "v"
33+
id: latest-no-v
34+
uses: miniscruff/changie-action@v2
35+
with:
36+
version: latest
37+
args: latest --remove-prefix
38+
39+
- name: check-chart-version
40+
run: |
41+
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)."
47+
exit 1
48+
else
49+
echo "Version matches: appVersion ($APP_VERSION) and version ($CHART_VERSION) are both $VERSION."
50+
fi
51+
3252
- name: Create Pull Request
3353
uses: peter-evans/create-pull-request@v7
3454
with:

deploy/ydb-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: "<IS_SUBSTITUTED_IN_CI_RELEASE_JOB>"
18+
version: "0.5.31"
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "<IS_SUBSTITUTED_IN_CI_RELEASE_JOB>"
24+
appVersion: "0.5.31"

0 commit comments

Comments
 (0)