Update workflows
All checks were successful
ssh-test / ssh-test (push) Successful in 21s

This commit is contained in:
iFargle 2023-12-20 22:21:52 +09:00
parent 8e60788101
commit 0568c5caa3
5 changed files with 40 additions and 7 deletions

View file

@ -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"

View file

@ -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.'

View file

@ -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.'

View file

@ -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()

View file

@ -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.'