Skip to content

Commit 47f220b

Browse files
committed
fix: missing toml lib for gha
1 parent bab4a25 commit 47f220b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ jobs:
3030
set -euo pipefail
3131
3232
CURRENT_VERSION=$(python3 -c "
33-
import tomllib
34-
with open('pyproject.toml', 'rb') as f:
35-
print(tomllib.load(f)['project']['version'])
33+
import re
34+
with open('pyproject.toml') as f:
35+
m = re.search(r'^version\s*=\s*\"([^\"]+)\"', f.read(), re.MULTILINE)
36+
print(m.group(1))
3637
")
3738
echo "Current version: ${CURRENT_VERSION}"
3839

0 commit comments

Comments
 (0)