From d59c8d079a8defa35f0c57b069afd81fedcb2d26 Mon Sep 17 00:00:00 2001 From: Stephan Boyer Date: Fri, 5 Jan 2024 04:04:22 -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 1e948b50..6df034f9 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 defaults: run: shell: bash @@ -18,6 +22,7 @@ jobs: with: tasks: build test_units test_rust_integration test_typescript_integration lint release run docker_repo: stephanmisc/toast + read_remote_cache: ${{ github.event_name == 'push' }} write_remote_cache: ${{ github.event_name == 'push' }} - run: | # Make Bash not silently ignore errors.