Skip to content

Commit 8c1ff91

Browse files
committed
GHA: Conditionally notify workflow success
1 parent d77b34f commit 8c1ff91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/juce_private_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
cpp-std: ${{ inputs.cpp-std }}
3636
secrets: inherit
3737
deploy:
38-
if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.nightly-targets == '[]' }}
38+
if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.cpp-std == '' && inputs.nightly-targets == '[]' }}
3939
needs: [build]
4040
name: Deploy
4141
uses: juce-framework/JUCE-utils/.github/workflows/deploy.yml@master
4242
secrets: inherit
4343
docs:
44-
if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.nightly-targets == '[]' }}
44+
if: ${{ contains(fromJSON('["master", "develop"]'), github.ref_name) && inputs.cpp-std == '' && inputs.nightly-targets == '[]' }}
4545
needs: [deploy]
4646
name: Docs
4747
uses: juce-framework/JUCE-utils/.github/workflows/docs.yml@master
4848
secrets: inherit
4949
notify:
50-
if: ${{ always() && inputs.nightly-targets == '[]' }}
50+
if: ${{ !(cancelled() || failure()) && inputs.nightly-targets == '[]' }}
5151
needs: [docs]
5252
name: Notify
5353
uses: juce-framework/JUCE-utils/.github/workflows/notify.yml@master

0 commit comments

Comments
 (0)