File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,13 @@ jobs:
136136
137137 - name : Update pyproject.toml version to match tag
138138 env :
139- VERSION : ${{ github.event.release.tag_name }}
139+ # VERSION: ${{ github.event.release.tag_name }}
140+ VERSION : ${{ github.ref }} | cut -d'/' -f3
140141# sed -ie '/version\s\+=/s/\([[:digit:]]\+\.\?\)\{3\}/'$VERSION'/g' pyproject.toml
141142 run : |
142143 echo "Reference is $GITHUB_REF"
143- echo "Tag is $VERSION or ${{ github.event.release.tag_name }}"
144+ echo "Tag is ${{ github.event.release.tag_name }}"
145+ echo "Version number is $VERSION"
144146 sed -ie '/version\s\+=/s/\([[:digit:]]\+\.\?\)\+/'$VERSION'/g' pyproject.toml
145147 git config --local user.name 'github-actions[bot]'
146148 git config --local user.email 'github-actions[bot]@users.noreply.github.com'
@@ -156,7 +158,6 @@ jobs:
156158 needs :
157159 - test
158160 - build
159- - version_bump
160161 # if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
161162 if : >-
162163 ${{
You can’t perform that action at this time.
0 commit comments