From 79bfe56a8f9ea10b085c8bb6428a14a4c2e0a899 Mon Sep 17 00:00:00 2001 From: Taras Korenko Date: Fri, 16 Dec 2022 20:47:16 +0200 Subject: [PATCH] Fix OSS integration tests for docs (#3663) (#20578) + Routes Slack notifications to '#docs' + Sets default value of SKIP_DEPLOY variable in deploy_docusaurus script --- .github/workflows/deploy-docs-site.yml | 4 ++-- tools/bin/deploy_docusaurus | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs-site.yml b/.github/workflows/deploy-docs-site.yml index 5b6a7b331565..a147a8af5b71 100644 --- a/.github/workflows/deploy-docs-site.yml +++ b/.github/workflows/deploy-docs-site.yml @@ -58,7 +58,7 @@ jobs: # 'C02TYDSUM8F' => '#dev-deploys' # 'C03BEADRPNY' => '#docs' args: >- - {\"channel\":\"C02TYDSUM8F\",\"attachments\":[ + {\"channel\":\"C03BEADRPNY\",\"attachments\":[ {\"color\":\"#ff0000\",\"blocks\":[ {\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"OSS Docs deploy fails on the latest master :bangbang:\"}}, {\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"_merged by_: *${{ github.actor }}*\"}}, @@ -74,7 +74,7 @@ jobs: # 'C02TYDSUM8F' => '#dev-deploys' # 'C03BEADRPNY' => '#docs' args: >- - {\"channel\":\"C02TYDSUM8F\",\"attachments\":[ + {\"channel\":\"C03BEADRPNY\",\"attachments\":[ {\"color\":\"#00ff00\",\"blocks\":[ {\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"OSS Docs deploy was successful :tada:\"}}, {\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"_merged by_: *${{ github.actor }}*\"}}, diff --git a/tools/bin/deploy_docusaurus b/tools/bin/deploy_docusaurus index ca669ac5e5cc..166c075a4e66 100755 --- a/tools/bin/deploy_docusaurus +++ b/tools/bin/deploy_docusaurus @@ -6,6 +6,7 @@ # $0 is the currently running program (this file) this_file_directory=$(dirname $0) relative_path_to_defaults=$this_file_directory/../shell_defaults +SKIP_DEPLOY=${SKIP_DEPLOY:-'no'} # if a file exists there, source it. otherwise complain if test -f $relative_path_to_defaults; then