diff --git a/actions/python-poetry-bump-version/action.yaml b/actions/python-poetry-bump-version/action.yaml index b825d577f..f5084301b 100644 --- a/actions/python-poetry-bump-version/action.yaml +++ b/actions/python-poetry-bump-version/action.yaml @@ -49,7 +49,7 @@ runs: run: | echo "old-version=$(poetry version -s)" >> $GITHUB_OUTPUT if [[ "${{ inputs.release-type }}" == "snapshot" ]]; then - snapshot_time=$(python -c "from datetime import datetime; time = datetime.now(); print(time.strftime('%Y%m%d%H%M%S'))") + snapshot_time=$(date +'%Y%m%d%H%M%S') poetry version patch poetry version $(poetry version -s).dev$snapshot_time else