From 8c1ff91aa33de3cc49c55b2b4c2195c767e99a22 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 6 Mar 2025 11:00:51 +0000 Subject: [PATCH] GHA: Conditionally notify workflow success --- .github/workflows/juce_private_build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/juce_private_build.yml b/.github/workflows/juce_private_build.yml index 2fdeb41adb..4f3c116b8e 100644 --- a/.github/workflows/juce_private_build.yml +++ b/.github/workflows/juce_private_build.yml @@ -35,19 +35,19 @@ jobs: cpp-std: ${{ inputs.cpp-std }} secrets: inherit deploy: - if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.nightly-targets == '[]' }} + if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.cpp-std == '' && inputs.nightly-targets == '[]' }} needs: [build] name: Deploy uses: juce-framework/JUCE-utils/.github/workflows/deploy.yml@master secrets: inherit docs: - if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.nightly-targets == '[]' }} + if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.cpp-std == '' && inputs.nightly-targets == '[]' }} needs: [deploy] name: Docs uses: juce-framework/JUCE-utils/.github/workflows/docs.yml@master secrets: inherit notify: - if: ${{ always() && inputs.nightly-targets == '[]' }} + if: ${{ !(cancelled() || failure()) && inputs.nightly-targets == '[]' }} needs: [docs] name: Notify uses: juce-framework/JUCE-utils/.github/workflows/notify.yml@master