From 55c24956b139b49f517657c61a0cba19b047bf77 Mon Sep 17 00:00:00 2001 From: Eric Rescorla Date: Sun, 1 Dec 2024 17:04:41 -0800 Subject: [PATCH] You don't need to run CI on non-main pushes --- .github/workflows/build-test.yaml | 1 + .github/workflows/pre-commit.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index ce23fef5..e1e3dee0 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -2,6 +2,7 @@ name: Cargo Build & Test on: push: + branches: main pull_request: env: diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index d64ed8e6..aee8d25d 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -3,6 +3,7 @@ name: pre-commit on: pull_request: push: + branches: main jobs: pre-commit: