From 9ab194ac49022bd419cf23a66b7c674982d7ce23 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:21:08 +0200 Subject: [PATCH 1/2] fix: only notify on failure and fill with data --- .github/workflows/nightly_docker_test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly_docker_test.yml b/.github/workflows/nightly_docker_test.yml index e577f7fb0e..9b569cc48a 100644 --- a/.github/workflows/nightly_docker_test.yml +++ b/.github/workflows/nightly_docker_test.yml @@ -101,9 +101,12 @@ jobs: - name: Microsoft Teams Notification uses: skitionek/notify-microsoft-teams@master - if: always() + if: failure() with: webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }} + needs: ${{ toJson(needs) }} + job: ${{ toJson(job) }} + steps: ${{ toJson(steps) }} # ================================================================================================= # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUNNING ON SELF-HOSTED RUNNER ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -144,6 +147,9 @@ jobs: - name: Microsoft Teams Notification uses: skitionek/notify-microsoft-teams@master - if: always() + if: failure() with: webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }} + needs: ${{ toJson(needs) }} + job: ${{ toJson(job) }} + steps: ${{ toJson(steps) }} From 863f960a24fd1f218fef5d1d2dff9a107812104b Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot Date: Tue, 4 Jun 2024 12:25:52 +0000 Subject: [PATCH 2/2] Adding changelog entry: 1238.fixed.md --- doc/changelog.d/1238.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/1238.fixed.md diff --git a/doc/changelog.d/1238.fixed.md b/doc/changelog.d/1238.fixed.md new file mode 100644 index 0000000000..60e5f04b81 --- /dev/null +++ b/doc/changelog.d/1238.fixed.md @@ -0,0 +1 @@ +fix: only notify on failure and fill with data \ No newline at end of file