Skip to content

Commit

Permalink
update version extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed Nov 4, 2024
1 parent 443371b commit 5e67090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
PYPROJECT_FILE="${{ inputs.context }}/pyproject.toml"
if [ -f ${PYPROJECT_FILE} ]; then
VERSION=$(awk 'NR==3 {print $3}' ${PYPROJECT_FILE} | tr -d '"')
VERSION=$(awk -F' = ' '/^version/ {gsub(/"/, "", $2); print $2}' ${PYPROJECT_FILE} | tr -d '"')
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit 5e67090

Please sign in to comment.