2023-03-27 20:28:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-27 21:25:16 +00:00
|
|
|
env | sort
|
2023-03-27 21:34:22 +00:00
|
|
|
echo "status should be: $1"
|
2023-03-27 21:25:16 +00:00
|
|
|
#GITHUB_RUN_NUMBER
|
|
|
|
# Job status: success/failure/cancelled
|
2023-03-27 20:28:12 +00:00
|
|
|
|
2023-03-27 21:25:16 +00:00
|
|
|
# if: success()
|
|
|
|
# run: |
|
|
|
|
# curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
|
|
|
# -H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \
|
|
|
|
# -H "Tags: +1" \
|
|
|
|
# -d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
|
|
|
|
# '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
|
|
|
# - name: Failure Notification
|
|
|
|
# if: failure()
|
|
|
|
# run: |
|
|
|
|
# curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
|
|
|
# -H "Priority: high" \
|
|
|
|
# -H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \
|
|
|
|
# -H "Tags: warning" \
|
|
|
|
# -d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
|
|
|
|
# '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
|
|
|
#
|