From 28dda3eab9b678d2ac97660965623f0a20f0231a Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Sat, 13 Jan 2024 23:37:14 +0100 Subject: [PATCH] Fix workflow Signed-off-by: Kim Oliver Drechsel --- .github/workflows/build-python-debian.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-python-debian.yaml b/.github/workflows/build-python-debian.yaml index 33a6237..9ffecc4 100644 --- a/.github/workflows/build-python-debian.yaml +++ b/.github/workflows/build-python-debian.yaml @@ -7,6 +7,7 @@ on: jobs: get_python_version: + name: Get Python version runs-on: ubuntu-latest outputs: version: ${{ steps.get-python-version.outputs.version }} @@ -14,11 +15,7 @@ jobs: - name: Extract Python Version from Dockerfile id: get-python-version run: | - echo "version=$(grep -oP '(?<=^FROM python:)[0-9.]*' debian.Dockerfile)" >> "$GITHUB_OUTPUT" - if [ $? -ne 0 ]; then - echo "Failed to extract python version from Dockerfile" - exit -1 - fi + echo "version=$(grep -oP '(?<=^FROM python:)[0-9.]*' debian.Dockerfile)" >> "$GITHUB_OUTPUT" || exit -1 debug_info: name: Debug info