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::\
73
73
A new Trusted Publisher for the currently running publishing workflow can be created \
74
74
by accessing the following link(s) while logged-in as an owner of the package(s):"
75
75
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
77
81
TRUSTED_PUBLISHING_MAGIC_LINK_NUDGE=" "
78
82
else
79
83
if [[ " ${INPUT_REPOSITORY_URL} " =~ test\. pypi\. org ]] ; then
90
94
echo " ${MAGIC_LINK_MESSAGE} " >> $GITHUB_STEP_SUMMARY
91
95
fi
92
96
93
- [[ " ${INPUT_USER} " == " __token__" && -z " ${INPUT_PASSWORD} " ]] \
94
- && TRUSTED_PUBLISHING=true || TRUSTED_PUBLISHING=false
95
97
96
98
if [[ " ${INPUT_ATTESTATIONS} " != " false" ]] ; then
97
99
# Setting `attestations: true` without Trusted Publishing indicates
You can’t perform that action at this time.
0 commit comments