Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b06d325

Browse files
committed
Add draft release URL to job summary
1 parent 43d629c commit b06d325

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/rollback-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ jobs:
143143
PARTIAL_CHANGELOG: "${{ runner.temp }}/partial_changelog.md"
144144
VERSION: "${{ needs.prepare.outputs.version }}"
145145
GH_TOKEN: ${{ steps.app-token.outputs.token }}
146+
RELEASE_URL: "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ needs.prepare.outputs.version }}"
146147
run: |
148+
set -exu
149+
147150
# Do not mark this release as latest. The most recent bundle release must be marked as latest.
148151
# Set as a draft to give us an opportunity to review the rollback release.
149152
gh release create \
@@ -153,6 +156,8 @@ jobs:
153156
--title "$VERSION" \
154157
--notes-file "$PARTIAL_CHANGELOG"
155158
159+
echo "Created draft rollback release at $RELEASE_URL" >> $GITHUB_STEP_SUMMARY
160+
156161
- name: Update changelog
157162
shell: bash
158163
env:

0 commit comments

Comments
 (0)