Skip to content

Commit

Permalink
fix: adding summary and trying to properly ref pr (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Jan 4, 2024
1 parent f41e53c commit 843204e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ on:
workflow_run:
workflows: [PR,Merge]
types:
- requested
- in_progess
- completed
jobs:
notify-teams-pr:
if: ${{github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.status == 'completed'}}
if: ${{github.event.workflow_run.event == 'pull_request'}}
runs-on: ubuntu-22.04
steps:
- uses: simbo/msteams-message-card-action@latest
Expand All @@ -24,14 +22,14 @@ 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}}
summary: "${{toJSON(github.event.workflow_run)}}"
text: ${{toJSON(github.event.workflow_run)}}
- facts:
- name: event
value: ${{github.event.workflow_run.event}}
- name: status
value: ${{github.event.workflow_run.status}}
notify-teams-merged:
if: ${{github.event.workflow_run.event == 'push' && github.event.workflow_run.status == 'completed'}}
if: ${{github.event.workflow_run.event == 'push'}}
runs-on: ubuntu-22.04
steps:
- name: PR Number
Expand All @@ -50,7 +48,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}}
summary: "${{toJSON(github.event.workflow_run)}}"
text: ${{toJSON(github.event.workflow_run)}}
- facts:
- name: event
value: ${{github.event.workflow_run.event}}
Expand Down

0 comments on commit 843204e

Please sign in to comment.