Skip to content
This repository was archived by the owner on Jan 25, 2025. It is now read-only.

Commit 8494075

Browse files
committed
Fixed version replacing in Cargo.toml
1 parent 53e4efa commit 8494075

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ jobs:
144144
- name: Set Cargo.toml version
145145
if: startsWith(github.ref, 'refs/tags/')
146146
run: |
147-
sed -i'' "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/" zia-client/Cargo.toml
148-
sed -i'' "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/" zia-common/Cargo.toml
149-
sed -i'' "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/" zia-server/Cargo.toml
147+
perl -pi -w -e "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/g;" zia-client/Cargo.toml
148+
perl -pi -w -e "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/g;" zia-common/Cargo.toml
149+
perl -pi -w -e "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/g;" zia-server/Cargo.toml
150150
151-
sed -i'' "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/" Cargo.lock
151+
perl -pi -w -e "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/g;" Cargo.lock
152152
153153
- name: Build
154154
run: cargo build --release

0 commit comments

Comments
 (0)