From 56405ebbd245b909b0a46c41263fef0e4692a882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20H=C3=B8jlund=20Larsen?= Date: Tue, 22 Aug 2023 13:34:10 +0200 Subject: [PATCH] Update workflow to run on push to master --- .github/workflows/windows_cmake.yml | 42 +++++++++++------------------ 1 file changed, 16 insertions(+), 26 deletions(-) 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