From 2cd07d85810f48a62c2c2f7ed31bfd7f7ec226bb Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Tue, 3 Mar 2026 17:09:11 +0100 Subject: [PATCH] workflows/ci: Combine the two notify jobs into one --- .github/workflows/ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d59c425..376bf53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,12 +105,13 @@ jobs: - uses: actions/checkout@v5 - name: Push to deploy branch run: git push origin HEAD:deploy --force - notify-success: - if: always() && needs.deploy.result == 'success' + notify: + if: always() needs: [deploy] runs-on: ubuntu-latest steps: - - name: Send ntfy success notification + - name: Notify success + if: needs.deploy.result == 'success' run: | curl -s \ -H "Title: CI: Deploy succeeded" \ @@ -120,12 +121,8 @@ jobs: -H "Markdown: yes" \ -d "Commit \`${GITHUB_SHA::7}\` deployed successfully." \ https://ntfy.sh/splitleaf - notify-failure: - if: always() && needs.deploy.result != 'success' - needs: [deploy] - runs-on: ubuntu-latest - steps: - - name: Send ntfy failure notification + - name: Notify failure + if: needs.deploy.result != 'success' run: | curl -s \ -H "Title: CI: Deploy failed" \