Skip to content

Commit

Permalink
Simplify getting current time for Poetry dev releases
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEdding authored Jan 13, 2025
1 parent 30b8efd commit ba49b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/python-poetry-bump-version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba49b56

Please sign in to comment.