diff --git a/.github/workflows/automated-publish-docs.yaml b/.github/workflows/automated-publish-docs.yaml index 4823a8d9ac..20b13b6745 100644 --- a/.github/workflows/automated-publish-docs.yaml +++ b/.github/workflows/automated-publish-docs.yaml @@ -16,6 +16,7 @@ jobs: ALIAS: ${{ steps.calculate-env.outputs.alias }} TITLE: ${{ steps.calculate-env.outputs.title }} SLACK_CHANNEL: "docs-review" + COMMIT_URL: ${{ steps.calculate-env.outputs.commit_url }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -34,6 +35,7 @@ jobs: echo newest_version=$NEWEST_VERSION >> $GITHUB_OUTPUT echo alias=$ALIAS >> $GITHUB_OUTPUT echo title=$TITLE >> $GITHUB_OUTPUT + echo "commit_url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commit/$GITHUB_SHA" >> $GITHUB_OUTPUT if [[ "$CURRENT_BRANCH" == "$NEWEST_VERSION" ]]; then echo "Deploying $NEWEST_VERSION as latest..." @@ -95,8 +97,8 @@ jobs: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_COLOR: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }} SLACK_TITLE: "RunAI-Docs: Version ${{ needs.env.outputs.CURRENT_BRANCH }} Deployment ${{ contains(needs.*.result, 'failure') && 'failed' || 'completed successfully' }}" - SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}" - SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}" + SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}. Commit URL: ${{ needs.env.outputs.COMMIT_URL }}" + SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}. Commit URL: ${{ needs.env.outputs.COMMIT_URL }}" MSG_MINIMAL: true SLACK_FOOTER: ""