We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a828845 commit e819903Copy full SHA for e819903
1 file changed
.github/workflows/publish.yaml
@@ -53,6 +53,20 @@ jobs:
53
with:
54
python-version: '3.10'
55
56
+ - name: Sync version in botok/vars.py to release tag
57
+ if: steps.psr.outputs.released == 'true'
58
+ run: |
59
+ set -euo pipefail
60
+ git fetch --tags --force
61
+ TAG="${{ steps.psr.outputs.tag }}"
62
+ if [ -z "${TAG}" ]; then
63
+ TAG="$(git describe --tags --abbrev=0)"
64
+ fi
65
+ VERSION="${TAG#v}"
66
+ echo "Using version: ${VERSION}"
67
+ sed -i -E "s/^(__version__\s*=\s*\").*(\")/\1${VERSION}\2/" botok/vars.py
68
+ grep -n "__version__" botok/vars.py
69
+
70
- name: Build package
71
if: steps.psr.outputs.released == 'true'
72
run: |
0 commit comments