This commit is contained in:
parent
8e60788101
commit
0568c5caa3
5 changed files with 40 additions and 7 deletions
|
@ -49,3 +49,11 @@ jobs:
|
||||||
run: rm -rf /.cache
|
run: rm -rf /.cache
|
||||||
- if: always()
|
- if: always()
|
||||||
run: rm -rf ${{ github.worksspace }}
|
run: rm -rf ${{ github.worksspace }}
|
||||||
|
- if: failure()
|
||||||
|
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||||
|
with:
|
||||||
|
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||||
|
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||||
|
notification_title: 'Build Failed (${{ github.actor }})'
|
||||||
|
notification_message: 'Your build has failed. Check Forgejo.'
|
||||||
|
name: "Send Notification"
|
|
@ -40,3 +40,10 @@ jobs:
|
||||||
run: rm -rf /.cache
|
run: rm -rf /.cache
|
||||||
- if: always()
|
- if: always()
|
||||||
run: rm -rf ${{ github.worksspace }}
|
run: rm -rf ${{ github.worksspace }}
|
||||||
|
- if: failure()
|
||||||
|
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||||
|
with:
|
||||||
|
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||||
|
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||||
|
notification_title: 'Build Failed (${{ github.actor }})'
|
||||||
|
notification_message: 'Your build has failed. Check Forgejo.'
|
|
@ -42,3 +42,10 @@ jobs:
|
||||||
run: rm -rf /.cache
|
run: rm -rf /.cache
|
||||||
- if: always()
|
- if: always()
|
||||||
run: rm -rf ${{ github.worksspace }}
|
run: rm -rf ${{ github.worksspace }}
|
||||||
|
- if: failure()
|
||||||
|
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||||
|
with:
|
||||||
|
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||||
|
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||||
|
notification_title: 'Build Failed (${{ github.actor }})'
|
||||||
|
notification_message: 'Your build has failed. Check Forgejo.'
|
|
@ -81,7 +81,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||||
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||||
notification_title: 'Build Complete'
|
notification_title: '${{ github.actor }} - Build Complete'
|
||||||
notification_message: 'Your build was completed.'
|
notification_message: 'Your build was completed.'
|
||||||
name: "Send Notification"
|
name: "Send Notification"
|
||||||
- if: always()
|
- if: always()
|
||||||
|
|
|
@ -46,9 +46,20 @@ jobs:
|
||||||
git commit -am "[ACTIONS] Flake Update (`date +%Y-%m-%d`)"
|
git commit -am "[ACTIONS] Flake Update (`date +%Y-%m-%d`)"
|
||||||
git push
|
git push
|
||||||
- if: success()
|
- if: success()
|
||||||
run: |
|
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||||
echo "Success!"
|
with:
|
||||||
|
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||||
|
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||||
|
notification_title: 'NixOS Flake Updated'
|
||||||
|
notification_message: 'Build completed successfully.'
|
||||||
- if: always()
|
- if: always()
|
||||||
run: rm -rf /.cache
|
run: rm -rf /.cache
|
||||||
- if: always()
|
- if: always()
|
||||||
run: rm -rf ${{ github.worksspace }}
|
run: rm -rf ${{ github.worksspace }}
|
||||||
|
- if: failure()
|
||||||
|
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||||
|
with:
|
||||||
|
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||||
|
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||||
|
notification_title: 'Build Failed (${{ github.actor }})'
|
||||||
|
notification_message: 'Your build has failed. Check Forgejo.'
|
Loading…
Reference in a new issue