We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38c117d + a479c59 commit 36ffa8fCopy full SHA for 36ffa8f
.github/workflows/python-publish.yml
@@ -24,7 +24,7 @@ jobs:
24
- name: Check version matches
25
run: |
26
# Extract version from pyproject.toml using Python
27
- PACKAGE_VERSION=$(python -c "import tomli; print(tomli.loads(open('pyproject.toml', 'rb').read().decode('utf-8'))['project']['version'])")
+ PACKAGE_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
28
# Extract version from git tag (remove 'v' prefix)
29
GIT_TAG_VERSION=${GITHUB_REF#refs/tags/v}
30
# Compare versions
0 commit comments