Skip to content

Commit 736dfe6

Browse files
committed
skip cargo edit and use sed to bump version
1 parent aad0d5b commit 736dfe6

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,12 @@ jobs:
8181
git config user.name "github-actions[bot]"
8282
git config user.email "github-actions[bot]@users.noreply.github.com"
8383
84-
- name: Install cargo-edit
85-
run: cargo install cargo-edit
86-
8784
- name: Bump versions
8885
run: |
8986
# Bump each crate version
90-
cd guard && cargo set-version "$VERSION" && cd ..
91-
cd guard-lambda && cargo set-version "$VERSION" && cd ..
92-
cd guard-ffi && cargo set-version "$VERSION" && cd ..
87+
sed -i 's/^version = "[^"]*"/version = "'"$VERSION"'"/' guard/Cargo.toml
88+
sed -i 's/^version = "[^"]*"/version = "'"$VERSION"'"/' guard-lambda/Cargo.toml
89+
sed -i 's/^version = "[^"]*"/version = "'"$VERSION"'"/' guard-ffi/Cargo.toml
9390
9491
# Update cross-crate dependency references
9592
sed -i "s/cfn-guard = { version = \"[^\"]*\"/cfn-guard = { version = \"$VERSION\"/" guard-lambda/Cargo.toml

0 commit comments

Comments
 (0)