We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2000007 commit be16305Copy full SHA for be16305
.github/actions/install_requirements/action.yml
@@ -15,7 +15,7 @@ runs:
15
run: |
16
PYTHON_VERSION="${{ inputs.python-version }}"
17
if [ $PYTHON_VERSION == "dev" ]; then
18
- PYTHON_VERSION=$(sed -n "s/ARG PYTHON_VERSION=//p" Dockerfile)
+ PYTHON_VERSION=$(sed -Ene "s/ARG PYTHON_VERSION=([0-9\.]+).*/\1/p" Dockerfile)
19
fi
20
echo "PYTHON_VERSION=$PYTHON_VERSION" >> "$GITHUB_ENV"
21
shell: bash
0 commit comments