Skip to content

Commit

Permalink
Output warnings as GH Checks annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jun 3, 2020
1 parent 65c1026 commit 328d2c6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions twine-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ if [[
! "$INPUT_PASSWORD" =~ ^pypi-
]]
then
>&2 echo \
[WARNING]: \
echo \
::warning file='# >>' PyPA publish to PyPI GHA'%3A' '<< ':: \
It looks like you are trying to use an API token to \
authenticate in the package index and your token value does \
not start with '"pypi-"' as it typically should. This may \
Expand All @@ -21,11 +21,12 @@ if [[
"`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0"
]]
then
>&2 echo \
[WARNING]: \
echo \
::warning file='# >>' PyPA publish to PyPI GHA'%3A' '<< ':: \
It looks like there are no Python distribution packages to \
publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. Please verify that they \
are in place should you face this problem.
publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. \
Please verify that they are in place should you face this \
problem.
fi

if [[ ${INPUT_VERIFY_METADATA,,} != "false" ]] ; then
Expand Down

0 comments on commit 328d2c6

Please sign in to comment.