Skip to content

Commit 8db1c3b

Browse files
authored
Modify version var - cicd.yml
1 parent 825051a commit 8db1c3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
${{

0 commit comments

Comments
 (0)