From 95262ad835b510eb158fe42795c79e052812312a Mon Sep 17 00:00:00 2001 From: Thomas Nixon Date: Fri, 3 Feb 2023 12:15:27 +0000 Subject: [PATCH] ci: run on main and tags this feels like a waste when using PRs for everything, but without running on main, CI on PRs is slow as they don't have any cache entries to load --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cceb7a..f6aa6bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,14 @@ # SPDX short identifier: MIT name: Build -on: [workflow_dispatch, pull_request] - +on: + workflow_dispatch: + pull_request: + push: + branches: + - 'main' + tags: + - '*' jobs: job: name: ${{ matrix.os }}-${{ github.workflow }}