Skip to content

Commit

Permalink
fix: one last edit (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Jan 4, 2024
1 parent 0db5816 commit db34d08
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
- uses: simbo/msteams-message-card-action@latest
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: "${{github.event.workflow_run.head_branch}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: ff69b4
title: "${{github.event.workflow_run.head_commit.message}}"
color: 'ff69b4'
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 @@ -26,19 +25,21 @@ 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: |
status: ${{github.event.workflow_run.status}}
event: ${{toJSON(github.event.workflow_run.event)}}
facts:
- name: event
value: ${{github.event.workflow_run.event}}
- name: status
value: ${{github.event.workflow_run.status}}
notify-teams-completed:
if: ${{github.event.workflow_run.status == '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.head_branch}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: 28a745
title: "${{github.event.workflow_run.head_commit.message}}"
color: '28a745'
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 @@ -48,6 +49,8 @@ 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: |
status: ${{github.event.workflow_run.status}}
event: ${{toJSON(github.event.workflow_run.event)}}
facts:
- name: event
value: ${{github.event.workflow_run.event}}
- name: status
value: ${{github.event.workflow_run.status}}

0 comments on commit db34d08

Please sign in to comment.