From 02cac34791431fccfa00b46d95a0316999f973e2 Mon Sep 17 00:00:00 2001 From: Tristan Knight Date: Sat, 16 Dec 2023 13:56:16 +0000 Subject: [PATCH] ci: tests only on main (#9) Co-authored-by: tris203 --- .github/workflows/format.yml | 8 +++++++- .github/workflows/lint.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index a5f3ce3..c7b1213 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,6 +1,12 @@ name: Format -on: [push, pull_request] +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" jobs: format: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 46759d5..527e04f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,12 @@ name: Lint -on: [push, pull_request] +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" jobs: lint: