From d4cbfb1703f4211c2dbb70c1e573f0a53f004d11 Mon Sep 17 00:00:00 2001 From: Frey Clante Date: Sun, 19 May 2024 11:10:59 +0200 Subject: [PATCH] Update Publish workflow to only send discord hook if release went well --- .github/workflows/publish.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3b54a00..4b7c649 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,12 +18,13 @@ jobs: secrets: inherit notify-discord: - if: success() + needs: main + if: needs.main.result == 'success' name: Notify Discord runs-on: ubuntu-latest steps: - - name: Notify Discord + - name: Notify Discord uses: tsickert/discord-webhook@v5.3.0 with: embed-title: "Modpack Update"