Fix beta and patch workflows (#3736)

This commit is contained in:
Rushmore Mushambi 2024-03-21 10:26:30 +02:00 committed by GitHub
parent ae0eb03998
commit 1b33a7ba58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -87,7 +87,6 @@ jobs:
# Retrieve just released version
betaVersion=$(taplo get -f Cargo.toml "package.version")
echo "current-version=${betaVersion}" >> $GITHUB_OUTPUT
major=$(echo $betaVersion | tr "." "\n" | sed -n 1p)
minor=$(echo $betaVersion | tr "." "\n" | sed -n 2p)
betaNum=$(echo $betaVersion | tr "." "\n" | sed -n 4p)
@ -97,6 +96,8 @@ jobs:
- name: Create version bump branch
if: ${{ steps.bump.outputs.beta-num == '1' }}
env:
RUSTFLAGS: "--cfg surrealdb_unstable"
run: |
set -x
@ -113,7 +114,7 @@ jobs:
sed -i "s#^version = \".*\"#version = \"2.0.0-${{ steps.bump.outputs.version }}\"#" core/Cargo.toml
# Update dependency versions
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${{ steps.bump.outputs.current-version }}\"#surrealdb-core2 = { version = \"=2.0.0-${{ steps.bump.outputs.core-version }}\"#" lib/Cargo.toml
sed -i "s#surrealdb-core2 = { version = \".*\", default-features#surrealdb-core2 = { version = \"=2.0.0-${{ steps.bump.outputs.version }}\", default-features#" lib/Cargo.toml
# Update Cargo.lock without updating dependency versions
cargo check --no-default-features --features storage-mem

View file

@ -48,6 +48,8 @@ jobs:
sudo mv taplo /usr/bin/taplo
- name: Prepare patch branch
env:
RUSTFLAGS: "--cfg surrealdb_unstable"
run: |
set -x