Skip to content

Commit b747a0c

Browse files
committed
Use toml-action
1 parent 21520d9 commit b747a0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
4444

4545
- name: Get version
4646
id: get_version
47-
run: sed -En 's/^version = "(.*)"/value=\1/p' Cargo.toml >> $GITHUB_OUTPUT
47+
uses: SebRollen/toml-action@v1.0.2
48+
with:
49+
file: Cargo.toml
50+
field: package.version
4851

4952
- name: Install Rust
5053
uses: actions-rs/toolchain@v1

0 commit comments

Comments
 (0)