Skip to content

Commit

Permalink
fix: move position of--no-color before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Apr 22, 2024
1 parent c8eea89 commit 435fee8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,14 @@ if [[ ${INPUT_PRINT_HASH,,} != "false" || ${INPUT_VERBOSE,,} != "false" ]] ; the
python /app/print-hash.py ${INPUT_PACKAGES_DIR%%/}
fi

if [[ ${INPUT_NO_COLOR,,} != "false" ]] ; then
TWINE_EXTRA_ARGS="--no-color $TWINE_EXTRA_ARGS"
if [[ ${INPUT_NO_COLOR,,} != "false" ]]; then
twine_command="twine --no-color upload"
else
twine_command="twine upload"
fi

TWINE_USERNAME="$INPUT_USER" \
TWINE_PASSWORD="$INPUT_PASSWORD" \
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \
exec twine upload ${TWINE_EXTRA_ARGS} ${INPUT_PACKAGES_DIR%%/}/*
TWINE_USERNAME="$INPUT_USER"
TWINE_PASSWORD="$INPUT_PASSWORD"
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL"

$twine_command ${TWINE_EXTRA_ARGS} ${INPUT_PACKAGES_DIR%%/}/*

0 comments on commit 435fee8

Please sign in to comment.