From 1d8a14e7d39974435d9e2a0c0431ad5ccfd68ad0 Mon Sep 17 00:00:00 2001 From: kha7iq Date: Mon, 10 May 2021 15:45:11 +0800 Subject: [PATCH] chore: add pushover alerts --- .github/workflows/build.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef8a666..781b38a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,4 +59,28 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + + - + name: Notify on failure + uses: kha7iq/pingme-action@v1 + if: failure() + env: + PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_TOKEN }} + PUSHOVER_USER: ${{ secrets.PUSHOVER_USER }} + PUSHOVER_TITLE: '🟢 New Release: ${{ github.ref }}' + PUSHOVER_MESSAGE: 'Event is triggerd by ${{ github.event_name }} ❌ ${{ job.status }}' + with: + service: pushover + + - + name: Notify on success + uses: kha7iq/pingme-action@v1 + if: success() + env: + PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_TOKEN }} + PUSHOVER_USER: ${{ secrets.PUSHOVER_USER }} + PUSHOVER_TITLE: '🟢 New Release: ${{ github.ref }}' + PUSHOVER_MESSAGE: 'Event is triggerd by ${{ github.event_name }} ✅ ${{ job.status }}' + with: + service: pushover \ No newline at end of file