Skip to content

Commit 315cb81

Browse files
committed
wip
1 parent 1e108be commit 315cb81

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ 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: bump-chart-version
40+
run: |
41+
VERSION=${{ steps.latest-no-v.outputs.output }}
42+
sed -i "s/^appVersion:.*/appVersion: \"$VERSION\"/" ./deploy/ydb-operator/Chart.yaml
43+
sed -i "s/^version:.*/version: \"$VERSION\"/" ./deploy/ydb-operator/Chart.yaml
44+
3245
- name: Create Pull Request
3346
uses: peter-evans/create-pull-request@v7
3447
with:

.github/workflows/run-tests.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,6 @@ on:
55
- workflow_dispatch
66

77
jobs:
8-
check-chart-bumped:
9-
concurrency:
10-
group: check-chart-bumped-${{ github.head_ref || github.ref_name }}
11-
cancel-in-progress: true
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: checkout
15-
uses: actions/checkout@v4
16-
- name: print the latest version without "v"
17-
id: latest-no-v
18-
uses: miniscruff/changie-action@v2
19-
with:
20-
version: latest
21-
args: latest --remove-prefix
22-
- name: check-chart-version
23-
run: |
24-
VERSION=${{ steps.latest-no-v.outputs.output }}
25-
APP_VERSION=$(grep '^appVersion:' ./deploy/ydb-operator/Chart.yaml | awk '{print $2}' | tr -d '"')
26-
CHART_VERSION=$(grep '^version:' ./deploy/ydb-operator/Chart.yaml | awk '{print $2}' | tr -d '"')
27-
28-
if [ "$APP_VERSION" != "$VERSION" ] || [ "$CHART_VERSION" != "$VERSION" ]; then
29-
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."
30-
exit 1
31-
else
32-
echo "Version matches: appVersion ($APP_VERSION) and version ($CHART_VERSION) are both $VERSION."
33-
fi
348
lint:
359
concurrency:
3610
group: lint-golangci-${{ github.head_ref || github.ref_name }}

0 commit comments

Comments
 (0)