Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>
  • Loading branch information
kimdre committed Jan 13, 2024
1 parent 757626b commit 28dda3e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build-python-debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ on:

jobs:
get_python_version:
name: Get Python version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-python-version.outputs.version }}
steps:
- 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
Expand Down

0 comments on commit 28dda3e

Please sign in to comment.