Update main.yml (#704)

Update name of workflow and only send slack notification on failure
This commit is contained in:
Shelby Switzer 2021-09-17 10:06:59 -04:00 committed by GitHub
parent c457ba85db
commit 75c261fc3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
# .github/workflows/ping-test.yml # .github/workflows/ping-test.yml
name: Trigger Run of site ping test name: Site ping test
on: on:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
schedule: schedule:
@ -26,7 +26,7 @@ jobs:
site: "https://d2zjid6n5ja2pt.cloudfront.net/justice40-tool/main/en/" site: "https://d2zjid6n5ja2pt.cloudfront.net/justice40-tool/main/en/"
# https://www.ravsam.in/blog/send-slack-notification-when-github-actions-fails/ # https://www.ravsam.in/blog/send-slack-notification-when-github-actions-fails/
- uses: ravsamhq/notify-slack-action@v1 - uses: ravsamhq/notify-slack-action@v1
if: always() if: ${{ failure() }}
with: with:
status: ${{ job.status }} status: ${{ job.status }}
env: env: