Skip to content

Commit 37e7a67

Browse files
authored
Fix a bug in version setting action (#547)
1 parent 45bf25d commit 37e7a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/version/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ runs:
5858
awk -v version="${{ steps.version.outputs.VERSION }}" '
5959
/^\[dependencies\]/ { in_dependencies=1 }
6060
/^\[/ && !/^\[dependencies\]/ { in_dependencies=0 }
61-
in_dependencies && /path = ".*"/ { sub(/path = ".*"/, "version = \"" version "\"") } { print }
61+
in_dependencies && /path = "[^"]*"/ { sub(/path = "[^"]*"/, "version = \"" version "\"") } { print }
6262
' ${{ inputs.manifest-file }} > tmp.toml && mv tmp.toml ${{ inputs.manifest-file }}
6363
shell: bash

0 commit comments

Comments
 (0)