From 7122a42db3b8e867a570fceba1dd8a269d63615b Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Thu, 7 Sep 2023 08:40:31 -0700 Subject: [PATCH] ci: updated to the backport flow (#1524) (cherry picked from commit c238cfbfc1fc6813554fa5cd1c1fe7d2b2d3cadb) --- .github/workflows/aloglia_crawler.yaml | 10 ++++++++++ .github/workflows/backport.yaml | 10 ++++++++++ .github/{ => workflows}/url-checks.yaml | 0 .github/workflows/version-branch-update.yaml | 1 + 4 files changed, 21 insertions(+) rename .github/{ => workflows}/url-checks.yaml (100%) diff --git a/.github/workflows/aloglia_crawler.yaml b/.github/workflows/aloglia_crawler.yaml index 5bfb853002..bda68e9fec 100644 --- a/.github/workflows/aloglia_crawler.yaml +++ b/.github/workflows/aloglia_crawler.yaml @@ -16,3 +16,13 @@ jobs: APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }} API_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} run: docker run -e APPLICATION_ID=$APPLICATION_ID -e API_KEY=$API_KEY -e "CONFIG=$(cat ./docsearch.config.json | jq -r tostring)" algolia/docsearch-scraper + + - name: Slack Notification + if: ${{ failure() }} + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_USERNAME: "spectromate" + SLACK_ICON_EMOJI: ":robot_panic:" + SLACK_COLOR: ${{ job.status }} + SLACK_MESSAGE: 'The Docs Algolia crawler cron job failed. Please check the GitHub Actions logs for more details.' \ No newline at end of file diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 1e1cb4008c..be1d8593c2 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -30,3 +30,13 @@ jobs: - name: Debug log if: ${{ failure() }} run: cat ~/.backport/backport.debug.log + + - name: Slack Notification + if: ${{ failure() }} + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_USERNAME: "spectromate" + SLACK_ICON_EMOJI: ":robot_panic:" + SLACK_COLOR: ${{ job.status }} + SLACK_MESSAGE: 'The backport automation flow failed. Review the GitHub Actions logs for more details.' diff --git a/.github/url-checks.yaml b/.github/workflows/url-checks.yaml similarity index 100% rename from .github/url-checks.yaml rename to .github/workflows/url-checks.yaml diff --git a/.github/workflows/version-branch-update.yaml b/.github/workflows/version-branch-update.yaml index 0f9a0fb1bf..deec7cfc22 100644 --- a/.github/workflows/version-branch-update.yaml +++ b/.github/workflows/version-branch-update.yaml @@ -4,6 +4,7 @@ on: pull_request: branches: - 'backport/version-*' + types: [opened, synchronize, reopened] concurrency: