From 0b094d6a2b82b257c855d6c6f0f5a921035c3e6d Mon Sep 17 00:00:00 2001 From: peterstone2017 <12449837+YunchuWang@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:42:14 -0700 Subject: [PATCH 1/2] update ppls with notification --- .github/workflows/ci_ut_ext_blob_workflow.yml | 37 ++++++++++++++----- .../workflows/ci_ut_ext_fastapi_workflow.yml | 36 +++++++++++++----- 2 files changed, 53 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci_ut_ext_blob_workflow.yml b/.github/workflows/ci_ut_ext_blob_workflow.yml index 7db0cd8..9223a9a 100644 --- a/.github/workflows/ci_ut_ext_blob_workflow.yml +++ b/.github/workflows/ci_ut_ext_blob_workflow.yml @@ -52,13 +52,30 @@ jobs: name: codecov fail_ci_if_error: false - - name: Notify dedicated teams channel - uses: jdcargile/ms-teams-notification@v1.4 - if: failure() - with: - github-token: ${{ github.token }} # this will use the runner's token. - ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension Blob UT CI Failed for Python ${{ matrix.python-version }}" - notification-color: 17a2b8 - timezone: America/Denver - verbose-logging: false + + send-notification: + runs-on: ubuntu-latest + needs: build + if: always() + steps: + - name: Notify dedicated teams channel on failure + if: ${{ always() && needs.build.result == 'failure' }} + uses: jdcargile/ms-teams-notification@v1.4 + with: + github-token: ${{ github.token }} + ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} + notification-summary: "Python Extension Blob UT CI Failed" + notification-color: FF0000 + timezone: America/Denver + verbose-logging: false + + - name: Notify dedicated teams channel on success + if: ${{ always() && needs.build.result == 'success' }} + uses: jdcargile/ms-teams-notification@v1.4 + with: + github-token: ${{ github.token }} + ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} + notification-summary: "Python Extension Blob UT CI Passed" + notification-color: 008000 + timezone: America/Denver + verbose-logging: false \ No newline at end of file diff --git a/.github/workflows/ci_ut_ext_fastapi_workflow.yml b/.github/workflows/ci_ut_ext_fastapi_workflow.yml index 289b1ab..a17c877 100644 --- a/.github/workflows/ci_ut_ext_fastapi_workflow.yml +++ b/.github/workflows/ci_ut_ext_fastapi_workflow.yml @@ -50,13 +50,29 @@ jobs: name: codecov fail_ci_if_error: false - - name: Notify dedicated teams channel - uses: jdcargile/ms-teams-notification@v1.4 - if: failure() - with: - github-token: ${{ github.token }} # this will use the runner's token. - ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension FastApi UT CI Failed for Python ${{ matrix.python-version }}" - notification-color: 17a2b8 - timezone: America/Denver - verbose-logging: false + send-notification: + runs-on: ubuntu-latest + needs: build + if: always() + steps: + - name: Notify dedicated teams channel on failure + if: ${{ always() && needs.build.result == 'failure' }} + uses: jdcargile/ms-teams-notification@v1.4 + with: + github-token: ${{ github.token }} + ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} + notification-summary: "Python Extension FastApi UT CI Failed" + notification-color: FF0000 + timezone: America/Denver + verbose-logging: false + + - name: Notify dedicated teams channel on success + if: ${{ always() && needs.build.result == 'success' }} + uses: jdcargile/ms-teams-notification@v1.4 + with: + github-token: ${{ github.token }} + ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} + notification-summary: "Python Extension FastApi UT CI Passed" + notification-color: 008000 + timezone: America/Denver + verbose-logging: false \ No newline at end of file From b4268033807c88c96c694b950cf3f3c0ba78b730 Mon Sep 17 00:00:00 2001 From: peterstone2017 <12449837+YunchuWang@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:52:21 -0700 Subject: [PATCH 2/2] comment --- .github/workflows/ci_ut_ext_base_workflow.yml | 8 ++++---- .github/workflows/ci_ut_ext_blob_workflow.yml | 8 ++++---- .github/workflows/ci_ut_ext_fastapi_workflow.yml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_ut_ext_base_workflow.yml b/.github/workflows/ci_ut_ext_base_workflow.yml index 91d81f6..d8d4f9f 100644 --- a/.github/workflows/ci_ut_ext_base_workflow.yml +++ b/.github/workflows/ci_ut_ext_base_workflow.yml @@ -1,4 +1,4 @@ -name: UT CI Run for Python Extension Base +name: CI Run for Python Extension Base on: push: @@ -18,7 +18,7 @@ on: jobs: build: - name: "Python Extension Base UT CI Run" + name: "Python Extension Base CI Run" runs-on: ubuntu-latest strategy: fail-fast: false @@ -66,7 +66,7 @@ jobs: with: github-token: ${{ github.token }} ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension Base UT CI Failed" + notification-summary: "Python Extension Base CI Failed" notification-color: FF0000 timezone: America/Denver verbose-logging: false @@ -77,7 +77,7 @@ jobs: with: github-token: ${{ github.token }} ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension Base UT CI Passed" + notification-summary: "Python Extension Base CI Passed" notification-color: 008000 timezone: America/Denver verbose-logging: false diff --git a/.github/workflows/ci_ut_ext_blob_workflow.yml b/.github/workflows/ci_ut_ext_blob_workflow.yml index 9223a9a..306e2fc 100644 --- a/.github/workflows/ci_ut_ext_blob_workflow.yml +++ b/.github/workflows/ci_ut_ext_blob_workflow.yml @@ -1,4 +1,4 @@ -name: UT CI Run for Python Extension Blob +name: CI Run for Python Extension Blob on: push: @@ -14,7 +14,7 @@ on: jobs: build: - name: "Python Extension Blob UT CI Run" + name: "Python Extension Blob CI Run" runs-on: ubuntu-latest strategy: fail-fast: false @@ -64,7 +64,7 @@ jobs: with: github-token: ${{ github.token }} ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension Blob UT CI Failed" + notification-summary: "Python Extension Blob CI Failed" notification-color: FF0000 timezone: America/Denver verbose-logging: false @@ -75,7 +75,7 @@ jobs: with: github-token: ${{ github.token }} ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension Blob UT CI Passed" + notification-summary: "Python Extension Blob CI Passed" notification-color: 008000 timezone: America/Denver verbose-logging: false \ No newline at end of file diff --git a/.github/workflows/ci_ut_ext_fastapi_workflow.yml b/.github/workflows/ci_ut_ext_fastapi_workflow.yml index a17c877..b4982ac 100644 --- a/.github/workflows/ci_ut_ext_fastapi_workflow.yml +++ b/.github/workflows/ci_ut_ext_fastapi_workflow.yml @@ -1,4 +1,4 @@ -name: UT CI Run for Python Extension FastApi +name: CI Run for Python Extension FastApi on: push: @@ -61,7 +61,7 @@ jobs: with: github-token: ${{ github.token }} ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension FastApi UT CI Failed" + notification-summary: "Python Extension FastApi CI Failed" notification-color: FF0000 timezone: America/Denver verbose-logging: false @@ -72,7 +72,7 @@ jobs: with: github-token: ${{ github.token }} ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} - notification-summary: "Python Extension FastApi UT CI Passed" + notification-summary: "Python Extension FastApi CI Passed" notification-color: 008000 timezone: America/Denver verbose-logging: false \ No newline at end of file