Skip to content

Commit

Permalink
Use metadata_verify instead of check
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jun 3, 2020
1 parent ab50aa7 commit 9bda1ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ would now look like:
packages_dir: custom-dir/
```

### Disabling twine check
### Disabling metadata verification

You can also disable the twine check with:
It is recommended that you run `twine check` just after producing your files,
but this also runs `twine check` before upload. You can also disable the twine
check with:

```yml
with:
check: false
verify_metadata: false
```

## License
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ inputs:
description: The target directory for distribution
required: false
default: dist
check:
description: Check before uploading
verify_metadata:
description: Check metadata before uploading
required: false
default: true
branding:
Expand All @@ -31,4 +31,4 @@ runs:
- ${{ inputs.password }}
- ${{ inputs.repository_url }}
- ${{ inputs.packages_dir }}
- ${{ inputs.check }}
- ${{ inputs.verify_metadata }}
2 changes: 1 addition & 1 deletion twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ then
are in place should you face this problem.
fi

if [[ ${INPUT_CHECK,,} != "false" ]] ; then
if [[ ${INPUT_VERIFY_METADATA,,} != "false" ]] ; then
twine check ${INPUT_PACKAGES_DIR%%/}/*
fi

Expand Down

0 comments on commit 9bda1ca

Please sign in to comment.