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
Xianpeng Shen committed Apr 25, 2024
1 parent fa90a32 commit 91d5b4d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,6 @@ It will show SHA256, MD5, BLAKE2-256 values of files to be uploaded.
print-hash: true
```

### Disable the progress bar

You may want to disable the progress bar when `twine upload`.

```yml
with:
disable-progress-bar: true
```

### Specifying a different username

The default username value is `__token__`. If you publish to a custom
Expand Down
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ inputs:
Use `print-hash` instead.
required: false
default: 'false'
disable-progress-bar:
description: Disable the progress bar.
required: false
default: 'true'
branding:
color: yellow
icon: upload-cloud
Expand All @@ -99,4 +95,3 @@ runs:
- ${{ inputs.skip-existing }}
- ${{ inputs.verbose }}
- ${{ inputs.print-hash }}
- ${{ inputs.disable-progress-bar }}
4 changes: 1 addition & 3 deletions twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ if [[ ${INPUT_PRINT_HASH,,} != "false" || ${INPUT_VERBOSE,,} != "false" ]] ; the
python /app/print-hash.py ${INPUT_PACKAGES_DIR%%/}
fi

if [[ ${INPUT_DISABLE_PROGRESS_BAR,,} != "false" ]]; then
TWINE_EXTRA_ARGS="--disable-progress-bar $TWINE_EXTRA_ARGS"
fi
TWINE_EXTRA_ARGS="--disable-progress-bar $TWINE_EXTRA_ARGS"

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

0 comments on commit 91d5b4d

Please sign in to comment.