Skip to content

Commit d630f45

Browse files
committed
ci: Update version extraction in CI workflow
1 parent 764b36f commit d630f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id: bump
2424
run: |
2525
# from 'refs/tags/v1.2.3' get 1.2.3
26-
VERSION=$(echo $GITHUB_REF | sed 's|refs/tags/||')
26+
VERSION=$(echo $GITHUB_REF | sed 's|refs/tags/v||')
2727
echo "version=$VERSION" >> $GITHUB_OUTPUT
2828
shell: bash
2929
- name: Build and publish
@@ -36,7 +36,7 @@ jobs:
3636
- name: Autobump plugin version
3737
run: |
3838
# from 'refs/tags/v1.2.3' get 1.2.3
39-
VERSION=$(echo $GITHUB_REF | sed 's|refs/tags/||')
39+
VERSION=$(echo $GITHUB_REF | sed 's|refs/tags/v||')
4040
VERSION=$VERSION make -C plugins update_all_versions
4141
shell: bash
4242
- name: Build all Plugins and publish
@@ -50,7 +50,7 @@ jobs:
5050
id: pypiwait
5151
run: |
5252
# from 'refs/tags/v1.2.3 get 1.2.3' and make sure it's not an empty string
53-
VERSION=$(echo $GITHUB_REF | sed 's|refs/tags/||')
53+
VERSION=$(echo $GITHUB_REF | sed 's|refs/tags/v||')
5454
if [ -z "$VERSION" ]
5555
then
5656
echo "No tagged version found, exiting"

0 commit comments

Comments
 (0)