Skip to content

Commit e90e853

Browse files
committed
twine-upload: only nudge on PyPI-looking domains
Signed-off-by: William Woodruff <[email protected]>
1 parent be69596 commit e90e853

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

twine-upload.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,18 @@ elif [[ "${INPUT_USER}" == '__token__' ]]; then
5959
echo \
6060
'::notice::Using a user-provided API token for authentication' \
6161
"against ${INPUT_REPOSITORY_URL}"
62-
echo "${TRUSTED_PUBLISHING_NUDGE}"
62+
63+
if [[ "${INPUT_REPOSITORY_URL}" =~ pypi\.org ]]; then
64+
echo "${TRUSTED_PUBLISHING_NUDGE}"
65+
fi
6366
else
6467
echo \
6568
'::notice::Using a username + password pair for authentication' \
6669
"against ${INPUT_REPOSITORY_URL}"
67-
echo "${TRUSTED_PUBLISHING_NUDGE}"
70+
71+
if [[ "${INPUT_REPOSITORY_URL}" =~ pypi\.org ]]; then
72+
echo "${TRUSTED_PUBLISHING_NUDGE}"
73+
fi
6874
fi
6975

7076
if [[

0 commit comments

Comments
 (0)