From b3a248f7b08d394707292fdbea76e6f8e0a190d2 Mon Sep 17 00:00:00 2001 From: Josh Holbrook Date: Thu, 23 Nov 2023 08:11:11 -0900 Subject: [PATCH] Fix python version in release workflow --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5226554..b269351 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,8 +15,8 @@ jobs: id: python-version run: | CLASSIFIERS="$(yq -p toml -o toml '.project.classifiers[]' pyproject.toml | grep "Programming Language :: Python :: " | grep "\.")" - VERSION="$(echo "${CLASSIFIERS}" | sed -e 's/Programming Language :: Python :: \([0-9.]*\)$/"\1"/g' | tail -n 1)" - echo "python_version=[${VERSION}]" > "${GITHUB_OUTPUT}" + VERSION="$(echo "${CLASSIFIERS}" | sed -e 's/Programming Language :: Python :: \([0-9.]*\)$/\1/g' | tail -n 1)" + echo "python_version=${VERSION}" > "${GITHUB_OUTPUT}" # See: https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions - name: Get release version id: release-version