Skip to content

Commit

Permalink
fix: trying new notification style (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 29, 2023
1 parent faf9974 commit 0cb8be3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflows: [PR,Merge]
jobs:
notify-teams-in-progress:
if: ${{github.action != 'completed'}}
if: ${{github.event.workflow_run.status != 'completed'}
runs-on: ubuntu-22.04
steps:
- uses: simbo/msteams-message-card-action@latest
Expand All @@ -18,11 +18,15 @@ jobs:
Diff https://github.com/bcgov/onroutebc/pull/${{github.event.workflow_run.pull_requests[0].number}}/files
sections: |
-
activity:
title: ${{github.event.workflow_run.head_commit.committer.name}}
subtitle: ${{github.event.workflow_run.head_commit.timestamp}}
image: https://github.com${{github.event.workflow_run.head_commit.committer.username}}.png
text: |
status: ${{github.event.workflow_run.status}}
action: ${{github.action}}
notify-teams-completed:
if: ${{github.action == 'completed'}}
if: ${{github.event.workflow_run.status == 'completed'}
runs-on: ubuntu-22.04
steps:
- uses: simbo/msteams-message-card-action@latest
Expand All @@ -36,6 +40,10 @@ jobs:
Diff https://github.com/bcgov/onroutebc/pull/${{github.event.workflow_run.pull_requests[0].number}}/files
sections: |
-
activity:
title: ${{github.event.workflow_run.head_commit.committer.name}}
subtitle: ${{github.event.workflow_run.head_commit.timestamp}}
image: https://github.com${{github.event.workflow_run.head_commit.committer.username}}.png
text: |
status: ${{github.event.workflow_run.status}}
action: ${{github.action}}

0 comments on commit 0cb8be3

Please sign in to comment.