Skip to content

Commit 59b13da

Browse files
committed
- update publish version replace to only replace the first occurance
1 parent 1f50aed commit 59b13da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
export REFS_VERSION=${{ github.ref }}
3030
export VERSION=$(echo $REFS_VERSION| cut -d'/' -f 3)
3131
echo $VERSION
32-
sed -i -E "s/[0-9]+.[0-9]+.[0-9]+/$VERSION/g" Cargo.toml
32+
sed -i -E "1,/[0-9]+.[0-9]+.[0-9]+/ s/[0-9]+.[0-9]+.[0-9]+/$VERSION/g" Cargo.toml
3333
git config user.name github-actions
3434
git config user.email github-actions@github.com
3535
git add .

0 commit comments

Comments
 (0)