Skip to content

Commit

Permalink
fix: using workflow notificaitons (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Dec 27, 2023
1 parent 7a1122b commit b557b4b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- completed
jobs:
notify-teams-in-progress:
if: ${{github.event.action == 'in_progress'}}
if: ${{github.action == 'in_progress'}}
runs-on: ubuntu-22.04
steps:
- uses: jdcargile/[email protected]
Expand All @@ -17,12 +17,14 @@ jobs:
notification-summary: |
Event: ${{github.event_name}}
Workflow: ${{toJson(github.event.workflow)}}
Action: ${{github.event.action}}
Action: ${{github.action}}
Workflow_Run: ${{toJson(github.event.workflow_run)}}
PR: ${{github.event.workflow_run.pull_requests[0].number}}
Message: ${{github.event.workflow_run.head_commit.message}}
notification-color: 17a2b8
timezone: America/Vancouver
notify-teams-completed:
if: ${{github.event.action == 'completed'}}
if: ${{github.action == 'completed'}}
runs-on: ubuntu-22.04
steps:
- uses: jdcargile/[email protected]
Expand All @@ -32,7 +34,9 @@ jobs:
notification-summary: |
Event: ${{github.event_name}}
Workflow: ${{toJson(github.event.workflow)}}
Action: ${{github.event.action}}
Action: ${{github.action}}
Workflow_Run: ${{toJson(github.event.workflow_run)}}
PR: ${{github.event.workflow_run.pull_requests[0].number}}
Message: ${{github.event.workflow_run.head_commit.message}}
notification-color: 28a745
timezone: America/Vancouver

0 comments on commit b557b4b

Please sign in to comment.