diff --git a/.github/workflows/windows_cmake.yml b/.github/workflows/windows_cmake.yml index 44d84df..ec922c5 100644 --- a/.github/workflows/windows_cmake.yml +++ b/.github/workflows/windows_cmake.yml @@ -1,14 +1,6 @@ -name: Windows Cmake -on: - workflow_dispatch: - inputs: - extra_resolve_options: - description: "Extra Resolve Options" - required: false - schedule: - - cron: "0 1 * * *" # 3 AM CET - push: - pull_request: +concurrency: + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} env: EXTRA_RESOLVE_OPTIONS: ${{ github.event.inputs.extra_resolve_options }} jobs: @@ -17,18 +9,16 @@ jobs: uses: steinwurf/windows-cmake-action/.github/workflows/action.yml@4.0.0 with: extra_resolve_options: $EXTRA_RESOLVE_OPTIONS - - - - - - - - - - - -# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109 -concurrency: - group: ${{ github.workflow }}-${{ github.ref || github.run_id }} - cancel-in-progress: true +name: Windows Cmake +'on': + pull_request: null + push: + branches: + - master + schedule: + - cron: 0 1 * * * + workflow_dispatch: + inputs: + extra_resolve_options: + description: Extra Resolve Options + required: false