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.
1 parent fa01cb4 commit d61e129Copy full SHA for d61e129
.github/workflows/publish.yml
@@ -37,13 +37,13 @@ jobs:
37
- name: Set version from GitHub tag
38
run: |
39
# Extract tag like "v1.2.3" → "1.2.3"
40
- VERSION=${GITHUB_REF#refs/tags/v}
+ export VERSION="${GITHUB_REF#refs/tags/v}"
41
echo "Setting [project].version to $VERSION"
42
python - << 'PY'
43
from pathlib import Path
44
from tomlkit import parse, dumps
45
import os
46
- version = os.environ.get('VERSION')
+ version = os.environ["VERSION"]
47
p = Path('pyproject.toml')
48
doc = parse(p.read_text(encoding='utf-8'))
49
# Update PEP 621 version
0 commit comments