Skip to content

Commit 27534c0

Browse files
committed
Adding PR-Link to Notification
1 parent 097576e commit 27534c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/automated-publish-docs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
2224

2325
- name: Get all v*.* branches
2426
id: calculate-env
@@ -94,7 +96,7 @@ jobs:
9496
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
9597
SLACK_COLOR: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
9698
SLACK_TITLE: "RunAI-Docs: Version ${{ needs.env.outputs.CURRENT_BRANCH }} Deployment ${{ contains(needs.*.result, 'failure') && 'failed' || 'completed successfully' }}"
97-
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}"
98-
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}"
99+
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}. PR Link: ${{ github.event.pull_request.html_url }}"
100+
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}. PR Link: ${{ github.event.pull_request.html_url }}"
99101
MSG_MINIMAL: true
100102
SLACK_FOOTER: ""

0 commit comments

Comments
 (0)