Skip to content

Commit

Permalink
Testing release pipeline, attempt 2 (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorres authored Nov 5, 2024
1 parent 41940ac commit ad1e82c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad1e82c

Please sign in to comment.