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

@ -48,4 +48,12 @@ jobs:
- 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.'
name: "Send Notification"

View file

@ -39,4 +39,11 @@ jobs:
- 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.'

View file

@ -41,4 +41,11 @@ jobs:
- 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.'

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