Skip to content

Commit 074894d

Browse files
authored
Add Pull Request URL to job summary (#298)
1 parent 748dc71 commit 074894d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ jobs:
347347
if [[ "${RESPONSE_CODE}" == 201 ]]; then
348348
PULL_REQUEST_URL=$(jq --raw-output .html_url <"${RESPONSE_BODY}")
349349
echo "Created pull request ${PULL_REQUEST_URL}"
350+
echo "${PULL_REQUEST_URL}" >> $GITHUB_STEP_SUMMARY
350351
elif [[ "${RESPONSE_CODE}" == 422 && "$(jq -r ".errors[0].message" <"${RESPONSE_BODY}")" == *"already exists"* ]]; then
351352
echo "A pull request for branch ${BRANCH} on ${REGISTRY_FORK} already exists."
352353
else

0 commit comments

Comments
 (0)