Skip to content

Commit 25c04cf

Browse files
committed
fixed version extraction for cli tag
1 parent 78a3b9a commit 25c04cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ jobs:
112112
- name: Get version from Cargo.toml
113113
id: version
114114
run: |
115-
# Extract version from Cargo.toml
116-
VERSION=$(grep '^version = ' renamify-cli/Cargo.toml | sed 's/version = "\(.*\)"/\1/')
115+
# Extract version from workspace Cargo.toml (since renamify-cli uses workspace version)
116+
VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
117117
echo "version=$VERSION" >> $GITHUB_OUTPUT
118118
119119
if [ "${{ github.event_name }}" = "push" ]; then

0 commit comments

Comments
 (0)