Skip to content

Commit ef395af

Browse files
committed
Keep the version number as step output
1 parent 762d42c commit ef395af

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy_to_pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717

1818
- name: Get version number
1919
id: v
20-
run: >-
21-
echo "${GITHUB_REF/refs\/tags\/v}" > VERSION
20+
run: |
21+
export VERSION_NUMBER=${GITHUB_REF/refs\/tags\/v}
22+
echo $VERSION_NUMBER > VERSION
23+
echo "::set-output name=VERSION::${VERSION_NUMBER}"
2224
2325
- name: Install pypa/build
2426
run: >-

0 commit comments

Comments
 (0)