Skip to content

Commit

Permalink
Disable the progress bar when exec twine upload
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Apr 26, 2024
1 parent 3fbcf7c commit 6013b72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ INPUT_PACKAGES_DIR="$(get-normalized-input 'packages-dir')"
INPUT_VERIFY_METADATA="$(get-normalized-input 'verify-metadata')"
INPUT_SKIP_EXISTING="$(get-normalized-input 'skip-existing')"
INPUT_PRINT_HASH="$(get-normalized-input 'print-hash')"
INPUT_DISABLE_PROGRESS_BAR="$(get-normalized-input 'disable-progress-bar')"

PASSWORD_DEPRECATION_NUDGE="::error title=Password-based uploads deprecated::\
Starting in 2024, PyPI will require all users to enable Two-Factor \
Expand Down Expand Up @@ -133,6 +134,8 @@ if [[ ${INPUT_PRINT_HASH,,} != "false" || ${INPUT_VERBOSE,,} != "false" ]] ; the
python /app/print-hash.py ${INPUT_PACKAGES_DIR%%/}
fi

TWINE_EXTRA_ARGS="--disable-progress-bar $TWINE_EXTRA_ARGS"

TWINE_USERNAME="$INPUT_USER" \
TWINE_PASSWORD="$INPUT_PASSWORD" \
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \
Expand Down

0 comments on commit 6013b72

Please sign in to comment.