File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ The workflow was run with 'attestations: true' input, but the specified \
69
69
repository URL does not support PEP 740 attestations. As a result, the \
70
70
attestations input is ignored."
71
71
72
- MAGIC_LINK_MESSAGE=" ::warning title=Create a Trusted Publisher:: \
73
- A new Trusted Publisher for the currently running publishing workflow can be created \
74
- by accessing the following link(s) while logged-in as an owner of the package(s):"
72
+ MAGIC_LINK_MESSAGE=" A new Trusted Publisher for the currently running \
73
+ publishing workflow can be created by accessing the following link(s) while \
74
+ logged-in as an owner of the package(s):"
75
75
76
76
77
77
[[ " ${INPUT_USER} " == " __token__" && -z " ${INPUT_PASSWORD} " ]] \
90
90
LINK=" - ${INDEX_URL} /manage/project/${PACKAGE_NAME} /settings/publishing/?provider=github&owner=${GITHUB_REPOSITORY_OWNER} &repository=${REPOSITORY_NAME} &workflow_filename=${WORKFLOW_FILENAME} "
91
91
ALL_LINKS+=" $LINK " $' \n '
92
92
done
93
- TRUSTED_PUBLISHING_MAGIC_LINK_NUDGE=" ${MAGIC_LINK_MESSAGE} " $' \n ' " ${ALL_LINKS} "
94
- echo " ${MAGIC_LINK_MESSAGE} " >> $GITHUB_STEP_SUMMARY
95
- fi
96
93
94
+ # Construct the summary message without the warning header
95
+ MAGIC_LINK_MESSAGE_WITH_LINKS=" ${MAGIC_LINK_MESSAGE} " $' \n ' " ${ALL_LINKS} "
96
+ echo " ${MAGIC_LINK_MESSAGE_WITH_LINKS} " >> $GITHUB_STEP_SUMMARY
97
+
98
+ # The actual nudge in the log is formatted as a warning
99
+ TRUSTED_PUBLISHING_MAGIC_LINK_NUDGE=" ::warning title=Create a Trusted Publisher::${MAGIC_LINK_MESSAGE_WITH_LINKS} "
100
+ fi
97
101
98
102
if [[ " ${INPUT_ATTESTATIONS} " != " false" ]] ; then
99
103
# Setting `attestations: true` without Trusted Publishing indicates
You can’t perform that action at this time.
0 commit comments