From ac64e59927f271aadeb08b70aa4ff731fc50b116 Mon Sep 17 00:00:00 2001 From: Eric Wittmann Date: Wed, 15 Nov 2023 12:32:35 -0500 Subject: [PATCH] Update workflow notification strategy. --- .github/workflows/release.yaml | 14 ++++-- .github/workflows/verify.yaml | 80 ++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e01ee5af39..f7c85db08f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -204,10 +204,18 @@ jobs: git commit -m "Automated update to next Snapshot Version: ${{ github.event.inputs.snapshot-version}}" git push - - name: Google Chat Notification - if: ${{ failure() }} + - name: Google Chat Notification (Always) + if: always() uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 with: - name: ${{ github.workflow }} + name: ${{ github.job }} url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} status: ${{ job.status }} + + - name: Google Chat Notification (Error) + if: failure() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} + status: ${{ job.status }} diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 0364cb7cec..fd39ca76a8 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -79,6 +79,22 @@ jobs: if: github.event_name == 'push' run: ./.github/scripts/build-and-push-multiarch-images.sh ${GITHUB_REF#refs/heads/} quay.io mem-multiarch-images snapshot + - name: Google Chat Notification (Always) + if: always() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} + status: ${{ job.status }} + + - name: Google Chat Notification (Error) + if: failure() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} + status: ${{ job.status }} + build-verify-sql: name: Verify SQL Build runs-on: ubuntu-20.04 @@ -133,6 +149,22 @@ jobs: if: github.event_name == 'push' run: ./.github/scripts/build-and-push-multiarch-images.sh ${GITHUB_REF#refs/heads/} quay.io sql-multiarch-images snapshot + - name: Google Chat Notification (Always) + if: always() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} + status: ${{ job.status }} + + - name: Google Chat Notification (Error) + if: failure() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} + status: ${{ job.status }} + build-verify-kafkasql: name: Verify KafkaSQL Build runs-on: ubuntu-20.04 @@ -187,6 +219,22 @@ jobs: if: github.event_name == 'push' run: ./.github/scripts/build-and-push-multiarch-images.sh ${GITHUB_REF#refs/heads/} quay.io kafkasql-multiarch-images snapshot + - name: Google Chat Notification (Always) + if: always() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} + status: ${{ job.status }} + + - name: Google Chat Notification (Error) + if: failure() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} + status: ${{ job.status }} + build-verify-gitops: name: Verify GitOps Build runs-on: ubuntu-20.04 @@ -241,6 +289,22 @@ jobs: if: github.event_name == 'push' run: ./.github/scripts/build-and-push-multiarch-images.sh ${GITHUB_REF#refs/heads/} quay.io gitops-multiarch-images snapshot + - name: Google Chat Notification (Always) + if: always() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} + status: ${{ job.status }} + + - name: Google Chat Notification (Error) + if: failure() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} + status: ${{ job.status }} + build-verify-ui: name: Verify UI Build runs-on: ubuntu-20.04 @@ -316,6 +380,22 @@ jobs: cd ui docker buildx build --push -f ./Dockerfile -t quay.io/apicurio/apicurio-registry-ui:latest-snapshot -t docker.io/apicurio/apicurio-registry-ui:latest-snapshot --platform linux/amd64,linux/arm64,linux/s390x,linux/ppc64le . + - name: Google Chat Notification (Always) + if: always() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} + status: ${{ job.status }} + + - name: Google Chat Notification (Error) + if: failure() + uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 + with: + name: ${{ github.job }} + url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_ERRORS }} + status: ${{ job.status }} + build-mem-native-images: name: Build and Test In Memory native images