Skip to content

Commit 328d2c6

Browse files
committed
Output warnings as GH Checks annotations
1 parent 65c1026 commit 328d2c6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

twine-upload.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ if [[
77
! "$INPUT_PASSWORD" =~ ^pypi-
88
]]
99
then
10-
>&2 echo \
11-
[WARNING]: \
10+
echo \
11+
::warning file='# >>' PyPA publish to PyPI GHA'%3A' '<< ':: \
1212
It looks like you are trying to use an API token to \
1313
authenticate in the package index and your token value does \
1414
not start with '"pypi-"' as it typically should. This may \
@@ -21,11 +21,12 @@ if [[
2121
"`ls -l ${INPUT_PACKAGES_DIR%%/}/*.tar.gz ${INPUT_PACKAGES_DIR%%/}/*.whl`" == "total 0"
2222
]]
2323
then
24-
>&2 echo \
25-
[WARNING]: \
24+
echo \
25+
::warning file='# >>' PyPA publish to PyPI GHA'%3A' '<< ':: \
2626
It looks like there are no Python distribution packages to \
27-
publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. Please verify that they \
28-
are in place should you face this problem.
27+
publish in the directory '"${INPUT_PACKAGES_DIR%%/}/"'. \
28+
Please verify that they are in place should you face this \
29+
problem.
2930
fi
3031

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

0 commit comments

Comments
 (0)