Skip to content

Commit 3697011

Browse files
committed
fix(ci): anchor version regex to line start in release workflow
1 parent 9cca200 commit 3697011

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Update version in Cargo.toml
7070
run: |
7171
$version = "${{ github.event.inputs.version }}"
72-
(Get-Content Cargo.toml) -replace 'version = ".*"', "version = `"$version`"" | Set-Content Cargo.toml
72+
(Get-Content Cargo.toml) -replace '^version = ".*"', "version = `"$version`"" | Set-Content Cargo.toml
7373
Write-Host "Updated Cargo.toml to version $version"
7474
shell: pwsh
7575

0 commit comments

Comments
 (0)