From 75c261fc3d9ab3bdf2ef264144397ec56fa6cad6 Mon Sep 17 00:00:00 2001 From: Shelby Switzer Date: Fri, 17 Sep 2021 10:06:59 -0400 Subject: [PATCH] Update main.yml (#704) Update name of workflow and only send slack notification on failure --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c1b715b3..c07be441 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,5 @@ # .github/workflows/ping-test.yml -name: Trigger Run of site ping test +name: Site ping test on: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions schedule: @@ -26,7 +26,7 @@ jobs: site: "https://d2zjid6n5ja2pt.cloudfront.net/justice40-tool/main/en/" # https://www.ravsam.in/blog/send-slack-notification-when-github-actions-fails/ - uses: ravsamhq/notify-slack-action@v1 - if: always() + if: ${{ failure() }} with: status: ${{ job.status }} env: