Fix Nightly builds not bailing on failure (#1289)

This commit is contained in:
Michael Telatynski 2023-10-23 12:04:58 +01:00 committed by GitHub
parent 203ce96d0b
commit ca0a48196c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,13 +120,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Deploy name: Deploy
if: | if: |
( always() && !failure() && !cancelled() && ((
github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_dispatch' &&
github.event.release.prerelease != true github.event.release.prerelease != true
) || ( ) || (
always() && !failure() && !cancelled() && inputs.deploy && inputs.deploy && (inputs.macos || inputs.windows || inputs.linux)
(inputs.macos || inputs.windows || inputs.linux) ))
)
environment: packages.element.io environment: packages.element.io
steps: steps:
- name: Download artifacts - name: Download artifacts
@ -161,12 +160,12 @@ jobs:
matrix: matrix:
arch: [amd64, arm64] arch: [amd64, arm64]
if: | if: |
( always() && !failure() && !cancelled() && ((
github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_dispatch' &&
github.event.release.prerelease != true github.event.release.prerelease != true
) || ( ) || (
always() && !failure() && !cancelled() && inputs.deploy && inputs.linux inputs.deploy && inputs.linux
) ))
uses: ./.github/workflows/reprepro.yaml uses: ./.github/workflows/reprepro.yaml
secrets: inherit secrets: inherit
with: with: