Skip to content

Commit

Permalink
Allow wildcards in INPUT_PACKAGES_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
grische committed Jul 8, 2020
1 parent 00ef3b8 commit f4c7b28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ then
copied your token properly if such an error occurs.
fi

if [[
! -d ${INPUT_PACKAGES_DIR%%/}/ ||
"`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0"
]]
if ( ! ls -A ${INPUT_PACKAGES_DIR%%/}/*.tar.gz &> /dev/null && \
! ls -A ${INPUT_PACKAGES_DIR%%/}/*.whl &> /dev/null )
then
echo \
::warning file='# >>' PyPA publish to PyPI GHA'%3A' \
Expand Down

0 comments on commit f4c7b28

Please sign in to comment.