Skip to content

Commit

Permalink
Fix a bug in version setting action (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjthieme authored Nov 28, 2024
1 parent 45bf25d commit 37e7a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ runs:
awk -v version="${{ steps.version.outputs.VERSION }}" '
/^\[dependencies\]/ { in_dependencies=1 }
/^\[/ && !/^\[dependencies\]/ { in_dependencies=0 }
in_dependencies && /path = ".*"/ { sub(/path = ".*"/, "version = \"" version "\"") } { print }
in_dependencies && /path = "[^"]*"/ { sub(/path = "[^"]*"/, "version = \"" version "\"") } { print }
' ${{ inputs.manifest-file }} > tmp.toml && mv tmp.toml ${{ inputs.manifest-file }}
shell: bash

0 comments on commit 37e7a67

Please sign in to comment.