File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments