From 84385814bd40a1c0657ad47bfd85f310fe672017 Mon Sep 17 00:00:00 2001 From: BtbN Date: Mon, 13 Jun 2022 12:24:41 +0200 Subject: [PATCH] Allow cancelling of manual jobs --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b8b776..57078d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -134,7 +134,7 @@ jobs: cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache build_ffmpeg: name: Build ffmpeg - if: ${{ github.event.inputs.buildOnly == 'true' || success() }} + if: ${{ ( github.event.inputs.buildOnly == 'true' && !cancelled() ) || success() }} needs: build_targets runs-on: ubuntu-latest strategy: @@ -162,7 +162,7 @@ jobs: path: artifacts/* publish_release: name: Publish release - if: ${{ always() && ( github.event_name == 'schedule' || github.event.inputs.doRelease == 'true' ) && needs.build_ffmpeg.result == 'success' }} + if: ${{ !cancelled() && ( github.event_name == 'schedule' || github.event.inputs.doRelease == 'true' ) && needs.build_ffmpeg.result == 'success' }} needs: build_ffmpeg runs-on: ubuntu-latest steps: