Skip to content

Commit d7ee543

Browse files
authored
Merge pull request #825 from vespa-engine/thomasht86/fix-release-pipeline
Thomasht86/fix release pipeline
2 parents fdc8016 + 2ee8992 commit d7ee543

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pyvespa.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55
release:
66
types: [published]
7+
78
jobs:
89
update_version:
910
runs-on: ubuntu-latest
@@ -21,9 +22,9 @@ jobs:
2122
- name: Set version from ref tag that triggered the workflow (strip prefix 'v' from tag)
2223
id: set_version
2324
run: |
24-
echo "tag=${{ github.ref_name }}"
25+
echo "GITHUB_REF=$GITHUB_REF"
2526
# strip prefix 'v' from version variable
26-
version=${tag#v}
27+
version=${GITHUB_REF#refs/tags/v}
2728
echo "version=$version" >> $GITHUB_OUTPUT
2829
2930
- name: Update version

0 commit comments

Comments
 (0)