Skip to content

Commit

Permalink
Update workflow notification strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann committed Nov 15, 2023
1 parent af6f3e8 commit af26eb9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/deploy_latest_designer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
required: true
GOOGLE_CHAT_WEBHOOK:
required: true
GOOGLE_CHAT_WEBHOOK_ERRORS:
required: true

jobs:

Expand Down Expand Up @@ -87,10 +89,18 @@ jobs:
git commit -m 'Automatic upgrade of Designer container images.'
git push origin main
- name: Google Chat Notification
- 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 }}
12 changes: 11 additions & 1 deletion .github/workflows/deploy_latest_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
required: true
GOOGLE_CHAT_WEBHOOK:
required: true
GOOGLE_CHAT_WEBHOOK_ERRORS:
required: true

jobs:

Expand Down Expand Up @@ -89,10 +91,18 @@ jobs:
git commit -m 'Automatic upgrade of Registry container images.'
git push origin main
- name: Google Chat Notification
- 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 }}
12 changes: 10 additions & 2 deletions .github/workflows/verify_designer_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ jobs:
path: repo/tests/designer/playwright-report/
retention-days: 3

- name: Google Chat Notification
if: failure()
- 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 }}
12 changes: 10 additions & 2 deletions .github/workflows/verify_registry_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ jobs:
path: repo/tests/registry/playwright-report/
retention-days: 3

- name: Google Chat Notification
if: failure()
- 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 }}

0 comments on commit af26eb9

Please sign in to comment.