From 683d67ccff07befb22c81d091221861b7a44c309 Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 25 Dec 2023 11:34:04 +0900 Subject: [PATCH] Update --- .forgejo/workflows/deploy-rs.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy-rs.yml b/.forgejo/workflows/deploy-rs.yml index 259fb441..f031d934 100644 --- a/.forgejo/workflows/deploy-rs.yml +++ b/.forgejo/workflows/deploy-rs.yml @@ -48,11 +48,18 @@ jobs: echo "nixos-Version" nixos-version - - if: always() + - if: 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: '[ ${{ github.repository }}: ${{ github.workflow }} ] Build Complete' - notification_message: 'Your build has completed.' + notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed' + notification_message: 'Deployment completed successfully.' + - 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: '[ ${{ github.repository }}: ${{ github.workflow }} ] Deployment Failed' + notification_message: 'Your deployment has failed. Check Forgejo.' name: "Send Notification" \ No newline at end of file