Skip to content

Commit

Permalink
Move discord notification into package job
Browse files Browse the repository at this point in the history
  • Loading branch information
janpantel committed Aug 18, 2021
1 parent 2dd4fb6 commit 3f84fbe
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
with:
args: "--no-color -q"

- name: Send Status to Discord
if: ${{ failure() }}
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
status: ${{ job.status }}

package:
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
Expand Down Expand Up @@ -55,16 +62,8 @@ jobs:
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}

status:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' && always() }}
needs: [test, package]

steps:
- name: Checkout main
uses: actions/checkout@master

- name: Send Status to Discord
if: ${{ always() }}
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
Expand Down

0 comments on commit 3f84fbe

Please sign in to comment.