Skip to content

Commit ae49e48

Browse files
committed
chore(github): include version number in cargo install cmd in release notes
1 parent 7e8ccbd commit ae49e48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
outputs:
2222
ref: ${{ steps.get-ref.outputs.ref }}
2323
version: ${{ steps.get-ref.outputs.version }}
24+
version_number: ${{ steps.get-ref.outputs.version_number }}
2425
steps:
2526
- name: Determine ref and version
2627
id: get-ref
@@ -34,8 +35,12 @@ jobs:
3435
# Extract version from ref (remove refs/tags/ prefix if present)
3536
VERSION="${REF#refs/tags/}"
3637
echo "version=$VERSION" >> $GITHUB_OUTPUT
38+
# Also create version without 'v' prefix for cargo
39+
VERSION_NUMBER="${VERSION#v}"
40+
echo "version_number=$VERSION_NUMBER" >> $GITHUB_OUTPUT
3741
echo "Using ref: $REF"
3842
echo "Using version: $VERSION"
43+
echo "Using version number: $VERSION_NUMBER"
3944
4045
verify-version:
4146
name: Verify version matches tag
@@ -197,7 +202,7 @@ jobs:
197202
198203
#### From crates.io
199204
```bash
200-
cargo install sql-schema
205+
cargo install sql-schema@${{ needs.setup.outputs.version_number }}
201206
```
202207
203208
#### Binary downloads

0 commit comments

Comments
 (0)