Skip to content

Commit

Permalink
fix: trying new notification style (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 29, 2023
1 parent ee784b7 commit 619531b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Notifications
on:
workflow_run:
workflows: [PR,Merge]
types:
- in_progess
- completed
jobs:
notify-teams-in-progress:
if: ${{github.event.workflow_run.status != 'completed'}}
Expand All @@ -19,11 +22,11 @@ jobs:
sections: |
-
activity:
title: ${{github.event.workflow_run.head_commit.committer.name}}
title: ${{github.event.workflow_run.head_commit.committer.name }}
subtitle: ${{github.event.workflow_run.head_commit.timestamp}}
image: ${{github.event.workflow_run.head_repository.owner.avatar_url}}
text: |
status: ${{github.event.workflow_run.status}}
text: |
status: ${{github.event.workflow_run.status}}
notify-teams-completed:
if: ${{github.event.workflow_run.status == 'completed'}}
runs-on: ubuntu-22.04
Expand All @@ -33,7 +36,7 @@ jobs:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: "PR# ${{github.event.workflow_run.pull_requests[0].number}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: ff69b4
color: 4bb543
buttons: |
Pull Request ${{github.event.workflow_run.pull_requests[0].number}} https://github.com/bcgov/onroutebc/pull/${{github.event.workflow_run.pull_requests[0].number}}
Diff https://github.com/bcgov/onroutebc/pull/${{github.event.workflow_run.pull_requests[0].number}}/files
Expand Down

0 comments on commit 619531b

Please sign in to comment.