Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
if [ -n "${{ inputs.version }}" ]; then
VERSION="${{ inputs.version }}"
else
CURRENT=$(grep '^version = ' Cargo.toml | head -1 | sed 's/.*"\(.*\)"/\1/')
CURRENT=$(grep '^version:' charts/openab/Chart.yaml | awk '{print $2}')
BASE="${CURRENT%%-*}"
IFS='.' read -r major minor patch <<< "$BASE"
case "${{ inputs.bump }}" in
Expand All @@ -55,15 +55,19 @@ jobs:
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "::notice::Release version: ${VERSION}"

- uses: dtolnay/rust-toolchain@stable
# Determine stable version (strip pre-release suffix)
STABLE="${VERSION%%-*}"
echo "stable=${STABLE}" >> "$GITHUB_OUTPUT"

- name: Update version files
run: |
VERSION="${{ steps.version.outputs.version }}"
sed -i "s/^version = .*/version = \"${VERSION}\"/" Cargo.toml
STABLE="${{ steps.version.outputs.stable }}"
# Chart.yaml always gets the full version (beta or stable)
sed -i "s/^version: .*/version: ${VERSION}/" charts/openab/Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"${VERSION}\"/" charts/openab/Chart.yaml
cargo generate-lockfile
# Cargo.toml only gets stable version (main stays clean)
sed -i "s/^version = .*/version = \"${STABLE}\"/" Cargo.toml

- name: Create release PR
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "openab"
version = "0.6.4-beta.1"
version = "0.6.4"
edition = "2021"

[dependencies]
Expand Down