Fix beta
and patch
workflows (#3736)
This commit is contained in:
parent
ae0eb03998
commit
1b33a7ba58
2 changed files with 5 additions and 2 deletions
5
.github/workflows/beta.yml
vendored
5
.github/workflows/beta.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/patch.yml
vendored
2
.github/workflows/patch.yml
vendored
|
@ -48,6 +48,8 @@ jobs:
|
|||
sudo mv taplo /usr/bin/taplo
|
||||
|
||||
- name: Prepare patch branch
|
||||
env:
|
||||
RUSTFLAGS: "--cfg surrealdb_unstable"
|
||||
run: |
|
||||
set -x
|
||||
|
||||
|
|
Loading…
Reference in a new issue