Skip to content

Commit

Permalink
fix: notifications 72 (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Jan 8, 2024
1 parent f5bcab8 commit f56c4a8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- uses: simbo/msteams-message-card-action@latest
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
summary: "${{github.event.workflow_run.event}}-${{github.event.workflow_run.status}}"
title: "${{github.event.workflow_run.head_commit.message}}"
color: 'ff69b4'
message: "${{github.event.workflow_run.head_commit.message}}"
color: 'dodger blue'
buttons: |
Pull Request ${{github.event.workflow_run.pull_requests[0].number}} ${{github.event.workflow_run.repository.html_url}}/pull/${{github.event.workflow_run.pull_requests[0].number}}
Diff ${{github.event.workflow_run.repository.html_url}}/pull/${{github.event.workflow_run.pull_requests[0].number}}/files
Expand All @@ -24,6 +24,7 @@ jobs:
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: ${{github.event.workflow_run.head_commit.message}}
notify-teams-merged:
if: ${{github.event.workflow_run.event == 'push'}}
runs-on: ubuntu-22.04
Expand All @@ -48,7 +49,8 @@ jobs:
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: "${{github.event.workflow_run.head_commit.message}}"
color: '28a745'
message: "${{github.event.workflow_run.head_commit.message}}"
color: 'dark orange'
summary: "${{github.event.workflow_run.event}}-${{github.event.workflow_run.status}}"
buttons: |
Pull Request ${{steps.pr.outputs.pr}} ${{github.event.workflow_run.repository.html_url}}/pull/${{steps.pr.outputs.pr}}
Expand All @@ -59,3 +61,4 @@ jobs:
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: ${{github.event.workflow_run.head_commit.message}}

0 comments on commit f56c4a8

Please sign in to comment.