Skip to content

Commit

Permalink
Echo new version correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchnei committed Apr 28, 2024
1 parent fbad633 commit acefd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
OLD_VERSION=$(git diff HEAD^ HEAD -- pyproject.toml | grep -Po '(?<=version = ")[^"]*')
echo "old version: $OLD_VERSION"
NEW_VERSION=$(grep -Po '(?<=version = ")[^"]*' pyproject.toml)
echo "new version: NEW_VERSION"
echo "new version: $NEW_VERSION"
if [[ "$OLD_VERSION" != "$NEW_VERSION" ]]; then
echo "Version changed from $OLD_VERSION to $NEW_VERSION."
echo "::set-output name=should_publish::true"
Expand Down

0 comments on commit acefd96

Please sign in to comment.