Skip to content

Commit

Permalink
fix: trying new card style (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 28, 2023
1 parent 9d34f01 commit d912d60
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,34 @@ jobs:
- 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}}
title: "PR# ${{github.event.workflow_run.pull_requests[0].number}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: ff69b4
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}}
activitySubtitle: ${{github.event.workflow_run.head_commit.timestamp}}
activityImage: https://github.com${{github.event.workflow_run.head_commit.committer.username}}.png
text: in_progress
text: ${{github.event.workflow_run.status}}
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
title: "PR# ${{github.event.workflow_run.pull_requests[0].number}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: ff69b4
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}}
activitySubtitle: ${{github.event.workflow_run.head_commit.timestamp}}
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)}}
- name: "Event"
value: ${{toJSON(github.event)}}
text: completed
text: ${{github.event.workflow_run.status}}

0 comments on commit d912d60

Please sign in to comment.