Skip to content

Commit

Permalink
fix: notifications 54 (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Jan 3, 2024
1 parent ce93d7b commit 0b17045
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: simbo/msteams-message-card-action@latest
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: "${{github.base_ref}}"
title: "${{github.event.workflow_run.head_branch}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: ff69b4
buttons: |
Expand All @@ -28,14 +28,15 @@ jobs:
image: ${{github.event.workflow_run.head_repository.owner.avatar_url}}
text: |
status: ${{github.event.workflow_run.status}}
event: ${{toJSON(github.event.workflow_run.event)}}
notify-teams-completed:
if: ${{github.event.workflow_run.status == 'completed'}}
runs-on: ubuntu-22.04
steps:
- uses: simbo/msteams-message-card-action@latest
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: "${{github.base_ref}}"
title: "${{github.event.workflow_run.head_branch}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: 28a745
buttons: |
Expand All @@ -49,3 +50,4 @@ jobs:
image: ${{github.event.workflow_run.head_repository.owner.avatar_url}}
text: |
status: ${{github.event.workflow_run.status}}
event: ${{toJSON(github.event.workflow_run.event)}}

0 comments on commit 0b17045

Please sign in to comment.