File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ MAGIC_LINK_MESSAGE="::warning title=Create a Trusted Publisher::\
7373A new Trusted Publisher for the currently running publishing workflow can be created \
7474by accessing the following link(s) while logged-in as an owner of the package(s):"
7575
76- if [[ ! " ${INPUT_REPOSITORY_URL} " =~ pypi\. org || ${# PACKAGE_NAMES[@]} -eq 0 ]] ; then
76+
77+ [[ " ${INPUT_USER} " == " __token__" && -z " ${INPUT_PASSWORD} " ]] \
78+ && TRUSTED_PUBLISHING=true || TRUSTED_PUBLISHING=false
79+
80+ if [[ " ${TRUSTED_PUBLISHING} " == true || ! " ${INPUT_REPOSITORY_URL} " =~ pypi\. org || ${# PACKAGE_NAMES[@]} -eq 0 ]] ; then
7781 TRUSTED_PUBLISHING_MAGIC_LINK_NUDGE=" "
7882else
7983 if [[ " ${INPUT_REPOSITORY_URL} " =~ test\. pypi\. org ]] ; then
9094 echo " ${MAGIC_LINK_MESSAGE} " >> $GITHUB_STEP_SUMMARY
9195fi
9296
93- [[ " ${INPUT_USER} " == " __token__" && -z " ${INPUT_PASSWORD} " ]] \
94- && TRUSTED_PUBLISHING=true || TRUSTED_PUBLISHING=false
9597
9698if [[ " ${INPUT_ATTESTATIONS} " != " false" ]] ; then
9799 # Setting `attestations: true` without Trusted Publishing indicates
You can’t perform that action at this time.
0 commit comments