Skip to content

Commit

Permalink
fix: trying new notification style (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 28, 2023
1 parent 435dc9b commit a107489
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- completed
jobs:
notify-teams-in-progress:
if: ${{github.action != 'completed'}}
runs-on: ubuntu-22.04
steps:
- uses: simbo/msteams-message-card-action@latest
Expand All @@ -23,16 +24,7 @@ jobs:
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: "Github"
value: ${{toJson(github)}}
- name: "Action"
value: ${{github.action}}
- name: "Pull Requests"
value: ${{toJson(github.event.workflow_run.pull_requests)}}
- name: "Event"
value: ${{toJson(github.event)}}
text: ${{github.event.workflow_run.head_commit.message}}
text: in_progress
notify-teams-completed:
if: ${{github.action == 'completed'}}
runs-on: ubuntu-22.04
Expand All @@ -52,12 +44,8 @@ jobs:
activitySubtitle: ${{github.event.workflow_run.head_commit.committer.date}}
activityImage: https://github.com${{github.event.workflow_run.head_commit.committer.username}}.png
facts:
- name: "Github"
value: ${{toJson(github)}}
- name: "Action"
value: ${{github.action}}
- name: "Pull Requests"
value: ${{toJson(github.event.workflow_run.pull_requests)}}
value: ${{toJSON(github.event.workflow_run.pull_requests)}}
- name: "Event"
value: ${{toJson(github.event)}}
text: ${{github.event.workflow_run.head_commit.message}}
value: ${{toJSON(github.event)}}
text: completed

0 comments on commit a107489

Please sign in to comment.