diff --git a/.forgejo/workflows/build-console-iso.yml b/.forgejo/workflows/build-console-iso.yml index a5941a50..4c1b309e 100644 --- a/.forgejo/workflows/build-console-iso.yml +++ b/.forgejo/workflows/build-console-iso.yml @@ -48,4 +48,12 @@ jobs: - if: always() run: rm -rf /.cache - if: always() - run: rm -rf ${{ github.worksspace }} \ No newline at end of file + 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" \ No newline at end of file diff --git a/.forgejo/workflows/build-desktop-iso.yml b/.forgejo/workflows/build-desktop-iso.yml index 7386200c..9e06e849 100644 --- a/.forgejo/workflows/build-desktop-iso.yml +++ b/.forgejo/workflows/build-desktop-iso.yml @@ -39,4 +39,11 @@ jobs: - if: always() run: rm -rf /.cache - if: always() - run: rm -rf ${{ github.worksspace }} \ No newline at end of file + 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.' \ No newline at end of file diff --git a/.forgejo/workflows/build-linode-img.yml b/.forgejo/workflows/build-linode-img.yml index 356adf4d..223902ef 100644 --- a/.forgejo/workflows/build-linode-img.yml +++ b/.forgejo/workflows/build-linode-img.yml @@ -41,4 +41,11 @@ jobs: - if: always() run: rm -rf /.cache - if: always() - run: rm -rf ${{ github.worksspace }} \ No newline at end of file + 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.' \ No newline at end of file diff --git a/.forgejo/workflows/ssh-test.yml b/.forgejo/workflows/ssh-test.yml index abb02537..cf0ac4ba 100644 --- a/.forgejo/workflows/ssh-test.yml +++ b/.forgejo/workflows/ssh-test.yml @@ -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() diff --git a/.forgejo/workflows/update-flake-lock.yml b/.forgejo/workflows/update-flake-lock.yml index 7b38d5fe..2c2120a8 100644 --- a/.forgejo/workflows/update-flake-lock.yml +++ b/.forgejo/workflows/update-flake-lock.yml @@ -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 }} \ No newline at end of file + 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.' \ No newline at end of file