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
|
||||
- if: always()
|
||||
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
|
||||
- if: always()
|
||||
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
|
||||
- if: always()
|
||||
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:
|
||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
||||
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
|
||||
notification_title: 'Build Complete'
|
||||
notification_title: '${{ github.actor }} - Build Complete'
|
||||
notification_message: 'Your build was completed.'
|
||||
name: "Send Notification"
|
||||
- if: always()
|
||||
|
|
|
@ -46,9 +46,20 @@ jobs:
|
|||
git commit -am "[ACTIONS] Flake Update (`date +%Y-%m-%d`)"
|
||||
git push
|
||||
- if: success()
|
||||
run: |
|
||||
echo "Success!"
|
||||
uses: https://git.sysctl.io/actions/gotify-action@master
|
||||
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()
|
||||
run: rm -rf /.cache
|
||||
- if: always()
|
||||
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