Skip to content

Commit 8960b88

Browse files
authored
Use toml-cli (python one) to fetch package version
1 parent 27433bf commit 8960b88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ jobs:
6363
path: release
6464

6565
- name: Fetch version from Cargo.toml
66-
run: echo VERSION=$(cat Cargo.toml | awk -F'"' '/^version/ {print $2}') >> $GITHUB_ENV
66+
run: |
67+
pipx install toml-cli
68+
echo VERSION=$(toml get --toml-path Cargo.toml package.version) >> $GITHUB_ENV
6769
6870
- name: Package files
6971
run: |

0 commit comments

Comments
 (0)