1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

GHA: Conditionally notify workflow success

This commit is contained in:
Tom Poole 2025-03-06 11:00:51 +00:00
parent d77b34f432
commit 8c1ff91aa3

View file

@ -35,19 +35,19 @@ jobs:
cpp-std: ${{ inputs.cpp-std }} cpp-std: ${{ inputs.cpp-std }}
secrets: inherit secrets: inherit
deploy: 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] needs: [build]
name: Deploy name: Deploy
uses: juce-framework/JUCE-utils/.github/workflows/deploy.yml@master uses: juce-framework/JUCE-utils/.github/workflows/deploy.yml@master
secrets: inherit secrets: inherit
docs: 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] needs: [deploy]
name: Docs name: Docs
uses: juce-framework/JUCE-utils/.github/workflows/docs.yml@master uses: juce-framework/JUCE-utils/.github/workflows/docs.yml@master
secrets: inherit secrets: inherit
notify: notify:
if: ${{ always() && inputs.nightly-targets == '[]' }} if: ${{ !(cancelled() || failure()) && inputs.nightly-targets == '[]' }}
needs: [docs] needs: [docs]
name: Notify name: Notify
uses: juce-framework/JUCE-utils/.github/workflows/notify.yml@master uses: juce-framework/JUCE-utils/.github/workflows/notify.yml@master