Skip to content

Commit 1f0bcf2

Browse files
committed
Merge PR #39
This change exposes an extra GitHub Action input called `verbose`. It allows to see `twine upload` detailed output if needed for debugging.
2 parents 1862321 + cf69e20 commit 1f0bcf2

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ default) setting as follows:
130130
have steps for publishing to both PyPI and TestPyPI, consider only using
131131
it for the latter, having the former fail loudly on duplicates.
132132

133+
### For Debugging
134+
135+
Sometimes, `twine upload` can fail and to debug use the `verbose` setting as follows:
136+
137+
```yml
138+
with:
139+
verbose: true
140+
```
141+
133142
## License
134143

135144
The Dockerfile and associated scripts and documentation in this project

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ inputs:
2626
exists in the target package index
2727
required: false
2828
default: false
29+
verbose:
30+
description: Show verbose output.
31+
required: false
32+
default: false
2933
branding:
3034
color: yellow
3135
icon: upload-cloud
@@ -39,3 +43,4 @@ runs:
3943
- ${{ inputs.packages_dir }}
4044
- ${{ inputs.verify_metadata }}
4145
- ${{ inputs.skip_existing }}
46+
- ${{ inputs.verbose }}

twine-upload.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ if [[ ${INPUT_SKIP_EXISTING,,} != "false" ]] ; then
4040
TWINE_EXTRA_ARGS=--skip-existing
4141
fi
4242

43+
if [[ ${VERBOSE,,} != "false" ]] ; then
44+
TWINE_EXTRA_ARGS="--verbose $TWINE_EXTRA_ARGS"
45+
fi
4346

4447
TWINE_USERNAME="$INPUT_USER" \
4548
TWINE_PASSWORD="$INPUT_PASSWORD" \

0 commit comments

Comments
 (0)