Skip to content

Commit

Permalink
Fix python version in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Nov 23, 2023
1 parent e0e4c98 commit b3a248f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3a248f

Please sign in to comment.