Skip to content

Commit

Permalink
Merge pull request #3 from lecrepont01/fix-python-v-regex
Browse files Browse the repository at this point in the history
fix(action): remove quote to fix matching the python version
  • Loading branch information
lecrepont01 authored Jan 31, 2024
2 parents 2fa33c9 + b9c1f25 commit d2a39ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
- name: Fetch the required python version from pyproject.toml
id: python-version
run: |
version=$(cat pyproject.toml | grep -w "python =" | sed -n 's/.*[^0-9.]\([0-9]\+\(\.[0-9]\+\)*\).*[^0-9.].*/\1/p;q')
version=$(cat pyproject.toml | grep -w "python =" | sed -n 's/"//gp' | sed -n 's/.*[^0-9.]\([0-9]\+\(\.[0-9]\+\)*\).*[^0-9.].*/\1/p;q')
echo "Read version from pyproject.toml, python==$version"
echo "version=$version" >> $GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit d2a39ff

Please sign in to comment.