Allow cancelling of manual jobs

This commit is contained in:
BtbN 2022-06-13 12:24:41 +02:00
parent e57447b1c8
commit 84385814bd

View file

@ -134,7 +134,7 @@ jobs:
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
build_ffmpeg: build_ffmpeg:
name: Build ffmpeg name: Build ffmpeg
if: ${{ github.event.inputs.buildOnly == 'true' || success() }} if: ${{ ( github.event.inputs.buildOnly == 'true' && !cancelled() ) || success() }}
needs: build_targets needs: build_targets
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -162,7 +162,7 @@ jobs:
path: artifacts/* path: artifacts/*
publish_release: publish_release:
name: 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 needs: build_ffmpeg
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: