Skip to content

Commit dd37137

Browse files
committed
Add magic links to step summary
1 parent 612ac72 commit dd37137

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

twine-upload.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ else
6969
fi
7070
ALL_LINKS=""
7171
for PACKAGE_NAME in "${PACKAGE_NAMES[@]}"; do
72-
LINK="${INDEX_URL}/manage/project/${PACKAGE_NAME}/settings/publishing/?provider=github&owner=${GITHUB_REPOSITORY_OWNER}&repository=${REPOSITORY_NAME}&workflow_filename=${WORKFLOW_FILENAME}"
72+
LINK="- ${INDEX_URL}/manage/project/${PACKAGE_NAME}/settings/publishing/?provider=github&owner=${GITHUB_REPOSITORY_OWNER}&repository=${REPOSITORY_NAME}&workflow_filename=${WORKFLOW_FILENAME}"
7373
ALL_LINKS+="$LINK"$'\n'
7474
done
75-
TRUSTED_PUBLISHING_MAGIC_LINK_NUDGE="::warning title=Create a Trusted Publisher::\
76-
A new Trusted Publisher for the currently running publishing workflow can be created \
77-
by accessing the following link(s) while logged-in as a maintainer of the package(s): \"
75+
MAGIC_LINK_MESSAGE="A new Trusted Publisher for the currently running publishing workflow can be created \
76+
by accessing the following link(s) while logged-in as a maintainer of the package(s):
7877
${ALL_LINKS}"
78+
TRUSTED_PUBLISHING_MAGIC_LINK_NUDGE=$'::warning title=Create a Trusted Publisher:: \n${MAGIC_LINK_MESSAGE}'
79+
echo "${MAGIC_LINK_MESSAGE}" >> $GITHUB_STEP_SUMMARY
7980
fi
8081

8182
if [[ "${INPUT_USER}" == "__token__" && -z "${INPUT_PASSWORD}" ]] ; then

0 commit comments

Comments
 (0)