From fd66c145443695fa9e055803641ac7d6051033ae Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 2 Aug 2023 13:05:22 +0100 Subject: [PATCH] Fix deploy not working if you skip any OSes https://github.com/actions/runner/issues/491 for context --- .github/workflows/build_and_deploy.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_deploy.yaml b/.github/workflows/build_and_deploy.yaml index c4623aa..3c6e3d5 100644 --- a/.github/workflows/build_and_deploy.yaml +++ b/.github/workflows/build_and_deploy.yaml @@ -130,7 +130,11 @@ jobs: - windows_64bit runs-on: ubuntu-latest name: Deploy - if: github.event_name != 'workflow_dispatch' || (inputs.deploy && (inputs.macos || inputs.windows_32bit || inputs.windows_64bit)) + if: | + github.event_name != 'workflow_dispatch' || ( + always() && !failure() !cancelled() && inputs.deploy && + (inputs.macos || inputs.windows_32bit || inputs.windows_64bit) + ) environment: packages.element.io steps: - name: Download artifacts @@ -164,7 +168,10 @@ jobs: strategy: matrix: arch: [amd64, arm64] - if: github.event_name != 'workflow_dispatch' || (inputs.deploy && inputs.linux) + if: | + github.event_name != 'workflow_dispatch' || ( + always() && !failure() !cancelled() && inputs.deploy && inputs.linux + ) uses: ./.github/workflows/reprepro.yaml secrets: inherit with: