Skip to content

Commit b3a248f

Browse files
committed
Fix python version in release workflow
1 parent e0e4c98 commit b3a248f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
id: python-version
1616
run: |
1717
CLASSIFIERS="$(yq -p toml -o toml '.project.classifiers[]' pyproject.toml | grep "Programming Language :: Python :: " | grep "\.")"
18-
VERSION="$(echo "${CLASSIFIERS}" | sed -e 's/Programming Language :: Python :: \([0-9.]*\)$/"\1"/g' | tail -n 1)"
19-
echo "python_version=[${VERSION}]" > "${GITHUB_OUTPUT}"
18+
VERSION="$(echo "${CLASSIFIERS}" | sed -e 's/Programming Language :: Python :: \([0-9.]*\)$/\1/g' | tail -n 1)"
19+
echo "python_version=${VERSION}" > "${GITHUB_OUTPUT}"
2020
# See: https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
2121
- name: Get release version
2222
id: release-version

0 commit comments

Comments
 (0)