From 95cd5d4ed64cc071ca7564358611efea548b2115 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 4208ffe..c54a599 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 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.