Skip to content

Commit be16305

Browse files
author
Ware, Joseph (DLSLtd,RAL,LSCI)
committed
Handle pinned sha versions of Python in the install_requirements action
1 parent 2000007 commit be16305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/install_requirements/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
run: |
1616
PYTHON_VERSION="${{ inputs.python-version }}"
1717
if [ $PYTHON_VERSION == "dev" ]; then
18-
PYTHON_VERSION=$(sed -n "s/ARG PYTHON_VERSION=//p" Dockerfile)
18+
PYTHON_VERSION=$(sed -Ene "s/ARG PYTHON_VERSION=([0-9\.]+).*/\1/p" Dockerfile)
1919
fi
2020
echo "PYTHON_VERSION=$PYTHON_VERSION" >> "$GITHUB_ENV"
2121
shell: bash

0 commit comments

Comments
 (0)