Skip to content

Commit

Permalink
Update automated-publish-docs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
haimlevy2006 authored Aug 4, 2024
1 parent 3427037 commit 8c451b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/automated-publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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..."
Expand Down Expand Up @@ -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: ""

0 comments on commit 8c451b7

Please sign in to comment.