Skip to content

Commit

Permalink
fix: Adding Notifications for pr-open/close. Removing exit message (#956
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cberg-aot authored Dec 22, 2023
1 parent f7e0891 commit 6d2396f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
custom-facts: |
- name: Notify QA Team
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to TEST - cc QA TEAM"
show-on-exit: false

deploys-prod:
name: Deploys (prod)
Expand All @@ -102,6 +103,7 @@ jobs:
custom-facts: |
- name: Notify Production Team
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to PROD"
show-on-exit: false

promote-images-prod:
name: Promote Images - Prod
Expand Down Expand Up @@ -203,6 +205,7 @@ jobs:
custom-facts: |
- name: Notify Teams
value: "Release ${{ needs.GitVersion.outputs.fullSemVer }} Created."
show-on-exit: false

promote-images-release:
name: Tag images with Release Version
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,12 @@ jobs:
repository: ${{ github.repository }}/${{ matrix.package }}
target: ${{ github.event.number }}
tags: latest
- name: MS Teams Notifications
uses: dchourasia/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
custom-facts: |
- name: Notify
value: "Successful Merge of ${{ needs.vars.outputs.pr }}"
show-on-exit: false
15 changes: 15 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,18 @@ jobs:
triggers: ('tps-migration' 'dops/' 'frontend/' 'vehicles/')
vault_role: nonprod
vault_zone: dev

notify-teams-dev:
name: Notify Teams - Dev
needs: [deploys, vars]
runs-on: ubuntu-22.04
steps:
- name: MS Teams Notifications
uses: dchourasia/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
custom-facts: |
- name: Notify
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to DEV"
show-on-exit: false

0 comments on commit 6d2396f

Please sign in to comment.