Merge pull request #36 from grische/fix/invlid_warning_with_wildcards

This change improves the warning emit logic to allow wildcards in `INPUT_PACKAGES_DIR`.

By @grische.
This commit is contained in:
Sviatoslav Sydorenko 2020-07-08 20:48:28 +02:00 committed by GitHub
commit bce3b74dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -18,10 +18,8 @@ then
copied your token properly if such an error occurs. copied your token properly if such an error occurs.
fi fi
if [[ if ( ! ls -A ${INPUT_PACKAGES_DIR%%/}/*.tar.gz &> /dev/null && \
! -d ${INPUT_PACKAGES_DIR%%/}/ || ! ls -A ${INPUT_PACKAGES_DIR%%/}/*.whl &> /dev/null )
"`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0"
]]
then then
echo \ echo \
::warning file='# >>' PyPA publish to PyPI GHA'%3A' \ ::warning file='# >>' PyPA publish to PyPI GHA'%3A' \