Fix deploy running even if a packaging stage fails

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-05-07 14:11:29 +01:00
parent 6a3d99481c
commit d2a4fadbde
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -104,7 +104,7 @@ jobs:
- windows
runs-on: ubuntu-latest
name: ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }}
if: always() && !failure() && !cancelled()
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
environment: ${{ needs.prepare.outputs.deploy == 'true' && 'packages.element.io' || '' }}
steps:
- name: Download artifacts