Skip to content

Commit

Permalink
fix: Reverted everything to using notifications inline w/ workflow (#955
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cberg-aot authored Dec 22, 2023
1 parent 24b1cd3 commit f7e0891
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 17 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ jobs:
target: ${{ needs.vars.outputs.pr }}
tags: test #Promote images AFTER successful deploy

notify-teams-test:
name: Notify Teams - Test
needs: [deploys-test, 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 QA Team
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to TEST - cc QA TEAM"
deploys-prod:
name: Deploys (prod)
needs: [promote-images-test, vars]
Expand All @@ -75,6 +89,20 @@ jobs:
vault_role: prod
vault_zone: prod

notify-teams-prod:
name: Notify Teams - Prod
needs: [deploys-prod, 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 Production Team
value: "Successful Deploy of ${{ needs.vars.outputs.pr }} to PROD"
promote-images-prod:
name: Promote Images - Prod
needs: [deploys-prod, vars]
Expand Down Expand Up @@ -167,6 +195,14 @@ jobs:
release_name: Release ${{ needs.GitVersion.outputs.fullSemVer }}
draft: false
prerelease: false
- 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 Teams
value: "Release ${{ needs.GitVersion.outputs.fullSemVer }} Created."
promote-images-release:
name: Tag images with Release Version
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/notifications.yml

This file was deleted.

0 comments on commit f7e0891

Please sign in to comment.