Skip to content

Commit

Permalink
fix: using workflow notificaitons (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 27, 2023
1 parent 5858ef0 commit 4bec372
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: jdcargile/[email protected]
if:
if: ${{github.event.type == 'in_progress'}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ms-teams-webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
notification-summary: |
Event: ${{github.event}}
Workflow: ${{github.event.workflow}} - ${{github.workflow}}
Workflow: ${{github.event.workflow.name}} - ${{github.workflow}}
Type: ${{github.event.type}}
Workflow_Run: ${{toJson(github.event.workflow_run.pull_requests)}}
notification-color: 17a2b8
timezone: America/Vancouver
- uses: jdcargile/[email protected]
if: ${{github.event.type == 'completed'}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ms-teams-webhook-uri: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
notification-summary: |
Event: ${{github.event}}
Workflow: ${{github.event.workflow}} - ${{github.workflow}}
Workflow: ${{github.event.workflow.name}} - ${{github.workflow}}
Type: ${{github.event.type}}
Workflow_Run: ${{toJson(github.event.workflow_run.pull_requests)}}
notification-color: 28a745
timezone: America/Vancouver

0 comments on commit 4bec372

Please sign in to comment.