We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b16086e commit 899bf35Copy full SHA for 899bf35
1 file changed
.github/workflows/cd.yml
@@ -65,12 +65,13 @@ jobs:
65
env:
66
VERSION: ${{ github.event.inputs.version }}
67
run: |
68
- CURRENT=$(python -c "
+ CURRENT=$(python - <<'PY'
69
import re
70
content = open('src/treemapper/version.py').read()
71
- m = re.search(r'__version__\s*=\s*[\"'\'']([^\"'\'']+)[\"'\'']', content)
+ m = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
72
print(m.group(1) if m else '')
73
- ")
+ PY
74
+ )
75
if [ "$CURRENT" = "$VERSION" ]; then
76
echo "Error: version.py already contains version $VERSION"
77
echo "Nothing to release - version is already set."
0 commit comments