1
0
mirror of https://github.com/kha7iq/pingme.git synced 2025-05-16 06:40:12 -07:00

chore: add pushover alerts

This commit is contained in:
kha7iq 2021-05-10 15:45:11 +08:00
parent fe0840a055
commit 1d8a14e7d3

View File

@ -59,4 +59,28 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
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