From 65bc99bb5c3082470dc621f6d3fe77c6474c3783 Mon Sep 17 00:00:00 2001 From: Stephan Boyer Date: Fri, 5 Jan 2024 04:04:23 -0800 Subject: [PATCH] Update the CI workflow to not run twice on every internal pull request --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e45cd0..ac16c49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: Continuous integration -on: [push, pull_request] +on: + pull_request: + push: + branches: + - main jobs: ci: name: Validate @@ -15,4 +19,5 @@ jobs: with: tasks: build check docker_repo: stephanmisc/toast + read_remote_cache: ${{ github.event_name == 'push' }} write_remote_cache: ${{ github.event_name == 'push' }}