diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 20ff5d7..30763a6 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -12,6 +12,15 @@ jobs: runs-on: docker if: startsWith(github.ref, 'refs/tags/v') || contains(github.event.head_commit.message, '[deploy]') steps: + - name: Notify Start + uses: https://git.data-it-solution.de/data/ntfy-action@main + with: + status: start + project: Baustelle-PWA + ntfy_auth: ${{ secrets.NTFY_AUTH }} + run_number: ${{ github.run_number }} + message: ${{ github.event.head_commit.message }} + - name: Checkout run: | git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ @@ -38,3 +47,22 @@ jobs: ./ "$DEPLOY_PATH/" echo "Deployment erfolgreich: ${REF} -> ${DEPLOY_PATH}" + + - name: Notify Success + if: success() + uses: https://git.data-it-solution.de/data/ntfy-action@main + with: + status: success + project: Baustelle-PWA + ntfy_auth: ${{ secrets.NTFY_AUTH }} + run_number: ${{ github.run_number }} + + - name: Notify Failure + if: failure() + uses: https://git.data-it-solution.de/data/ntfy-action@main + with: + status: failure + project: Baustelle-PWA + ntfy_auth: ${{ secrets.NTFY_AUTH }} + run_number: ${{ github.run_number }} + click_url: https://git.data-it-solution.de/${{ github.repository }}/actions