Skip to content

Commit f4c7b28

Browse files
committed
Allow wildcards in INPUT_PACKAGES_DIR
1 parent 00ef3b8 commit f4c7b28

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

twine-upload.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ then
1818
copied your token properly if such an error occurs.
1919
fi
2020

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

0 commit comments

Comments
 (0)