File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5959 # Fetch all history instead of the latest commit
6060 fetch-depth : 0
6161 - name : Get and set version in env
62- run : echo "CURRENT_VERSION=$( python setup.py --version )" >> $GITHUB_ENV
62+ run : |
63+ python scripts/write-version.py
64+ echo "CURRENT_VERSION=$( python -c 'from buildrunner.version import __version__; print(__version__)' )" >> $GITHUB_ENV
6365 - name : Print current version
6466 run : echo CURRENT_VERSION ${{ env.CURRENT_VERSION }}
6567 - name : Tag commit
8082 - name : Remove version file
8183 # This is just in case something else created it, destroy it to get a fresh version
8284 run : rm -f buildrunner/version.py
85+ - name : Write version file
86+ run : python scripts/write-version.py
8387 - name : Install wheel
8488 run : pip install wheel build
8589 - name : Build
@@ -103,7 +107,9 @@ jobs:
103107 # Fetch all history instead of the latest commit
104108 fetch-depth : 0
105109 - name : Get and set version in env
106- run : echo "CURRENT_VERSION=$( python setup.py --version )" >> $GITHUB_ENV
110+ run : |
111+ python scripts/write-version.py
112+ echo "CURRENT_VERSION=$( python -c 'from buildrunner.version import __version__; print(__version__)' )" >> $GITHUB_ENV
107113 - name : Print current version
108114 run : echo CURRENT_VERSION ${{ env.CURRENT_VERSION }}
109115 - name : Docker Tags
You can’t perform that action at this time.
0 commit comments