Skip to content

Commit

Permalink
fix: trying new notification style (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 28, 2023
1 parent ecc78fd commit ed485ac
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,25 @@ jobs:
- name: "Pull Requests:"
value: ${{toJson(github.event.workflow_run.pull_requests)}}
text: ${{github.event.workflow_run.head_commit.message}}
notify-teams-completed:
if: ${{github.action == 'completed'}}
runs-on: ubuntu-22.04
steps:
- uses: simbo/msteams-message-card-action@latest
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: ${{github.event.workflow_run.pull_requests[0].number}}
message: ${{github.event.workflow_run.head_commit.message}}
color: 28a745
buttons: |
PR ${{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
sections: |
-
activityTitle: ${{github.event.workflow_run.head_commit.committer.name}}
activitySubtitle: ${{github.event.workflow_run.head_commit.committer.date}}
activityImage: https://github.com${{github.event.workflow_run.head_commit.committer.username}}.png
facts:
- name: "Pull Requests:"
value: ${{toJson(github.event.workflow_run.pull_requests)}}
text: ${{github.event.workflow_run.head_commit.message}}

0 comments on commit ed485ac

Please sign in to comment.