diff --git a/.github/workflows/notifications.yml b/.github/workflows/notifications.yml index 05d2c0cf2..edf193cfa 100644 --- a/.github/workflows/notifications.yml +++ b/.github/workflows/notifications.yml @@ -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/ms-teams-notification@v1.3 @@ -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/ms-teams-notification@v1.3 @@ -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