Skip to content

Commit 145616e

Browse files
authored
Update automated-publish-docs.yaml
1 parent 03e9403 commit 145616e

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
@@ -16,6 +16,7 @@ jobs:
1616
ALIAS: ${{ steps.calculate-env.outputs.alias }}
1717
TITLE: ${{ steps.calculate-env.outputs.title }}
1818
SLACK_CHANNEL: "docs-review"
19+
COMMIT_URL: ${{ steps.calculate-env.outputs.commit_url }}
1920
steps:
2021
- name: Checkout code
2122
uses: actions/checkout@v4
@@ -34,6 +35,7 @@ jobs:
3435
echo newest_version=$NEWEST_VERSION >> $GITHUB_OUTPUT
3536
echo alias=$ALIAS >> $GITHUB_OUTPUT
3637
echo title=$TITLE >> $GITHUB_OUTPUT
38+
echo "commit_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commit/$GITHUB_SHA" >> $GITHUB_OUTPUT
3739
3840
if [[ "$CURRENT_BRANCH" == "$NEWEST_VERSION" ]]; then
3941
echo "Deploying $NEWEST_VERSION as latest..."
@@ -95,8 +97,8 @@ jobs:
9597
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
9698
SLACK_COLOR: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
9799
SLACK_TITLE: "RunAI-Docs: Version ${{ needs.env.outputs.CURRENT_BRANCH }} Deployment ${{ contains(needs.*.result, 'failure') && 'failed' || 'completed successfully' }}"
98-
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}. PR Link: ${{ github.event.pull_request.html_url }}"
99-
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}. PR Link: ${{ github.event.pull_request.html_url }}"
100+
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}. Commit URL: ${{ needs.env.outputs.COMMIT_URL }}"
101+
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}. Commit URL: ${{ needs.env.outputs.COMMIT_URL }}"
100102
MSG_MINIMAL: true
101103
SLACK_FOOTER: ""
102104

0 commit comments

Comments
 (0)