From c02e5e881310bd48243bbafea7677f3d5a75f39f Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 17 Mar 2022 12:16:41 +0000 Subject: [PATCH 1/2] Avoid running actions on tags Reduces the number of runs from a release --- .github/workflows/Emscripten.yml | 2 ++ .github/workflows/Visual Studio.yml | 6 ++++-- .github/workflows/cmake.yml | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Emscripten.yml b/.github/workflows/Emscripten.yml index f7e843406..157451c6e 100644 --- a/.github/workflows/Emscripten.yml +++ b/.github/workflows/Emscripten.yml @@ -2,6 +2,8 @@ name: CMake / Emscripten on: push: + branches: + - '**' # only run on branches pull_request: release: types: [created] diff --git a/.github/workflows/Visual Studio.yml b/.github/workflows/Visual Studio.yml index fc33c7fc8..b5fe16353 100644 --- a/.github/workflows/Visual Studio.yml +++ b/.github/workflows/Visual Studio.yml @@ -1,6 +1,8 @@ name: Visual Studio (.sln) -on: +on: push: + branches: + - '**' # only run on branches pull_request: jobs: @@ -20,4 +22,4 @@ jobs: uses: microsoft/setup-msbuild@v1.0.2 - name: Build - run: msbuild.exe vs/32blit.sln \ No newline at end of file + run: msbuild.exe vs/32blit.sln diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c6167dcef..290240149 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -2,6 +2,8 @@ name: CMake on: push: + branches: + - '**' # only run on branches pull_request: release: types: [created] From 50c6a84c458c0c3d556411ee9aab6f68a3ecb0fb Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 17 Mar 2022 11:50:45 +0000 Subject: [PATCH 2/2] Run release action on publish --- .github/workflows/Emscripten.yml | 4 ++-- .github/workflows/cmake.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Emscripten.yml b/.github/workflows/Emscripten.yml index 157451c6e..ccdc69ff0 100644 --- a/.github/workflows/Emscripten.yml +++ b/.github/workflows/Emscripten.yml @@ -1,12 +1,12 @@ name: CMake / Emscripten -on: +on: push: branches: - '**' # only run on branches pull_request: release: - types: [created] + types: [published] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 290240149..571dc110f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -6,7 +6,7 @@ on: - '**' # only run on branches pull_request: release: - types: [created] + types: [published] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)