parent
3c552c16b4
commit
b6cf090915
|
@ -15,12 +15,14 @@ jobs:
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ github.workspace }}
|
ls ${{ github.workspace }}
|
||||||
|
- run: false
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
- name: Success Notification
|
- name: Success Notification
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
||||||
-H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \
|
-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' \
|
-d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
|
||||||
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
||||||
- name: Failure Notification
|
- name: Failure Notification
|
||||||
|
@ -29,5 +31,6 @@ jobs:
|
||||||
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
|
||||||
-H "Priority: high" \
|
-H "Priority: high" \
|
||||||
-H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \
|
-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' \
|
-d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
|
||||||
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
|
Loading…
Reference in New Issue
Block a user