Skip to content

Commit

Permalink
Add cancel and failure statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
damienfamed75 authored Aug 29, 2019
1 parent 56604e2 commit b08c1e3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:

- name: Test
run: go test -v ./...

- name: Send Failure Status
if: failure()
env:
WEBHOOK_URL: ${{secrets.DISCORD_WEBHOOK}}
uses: WalshyDev/Discord-Status-Webhook@v1.0
with:
args: "failure"

build:
name: Build
Expand Down Expand Up @@ -78,4 +86,13 @@ jobs:
uses: WalshyDev/Discord-Status-Webhook@v1.0
with:
args: "success"

- name: Send Failure Status
if: cancelled()
env:
WEBHOOK_URL: ${{secrets.DISCORD_WEBHOOK}}
uses: WalshyDev/Discord-Status-Webhook@v1.0
with:
args: "failure"


0 comments on commit b08c1e3

Please sign in to comment.