From 8a3126d4301810fe35a4001b3fadde1744b9f53e Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 8 Dec 2023 17:36:13 +1300 Subject: [PATCH] ci: only run on pull requests and pushes to main branch (#1322) --- .github/workflows/rubocop.yml | 6 +++++- .github/workflows/ruby.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 6a13f6225..6c58f9f61 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -1,6 +1,10 @@ name: Rubocop -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: jobs: rubocop: diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index e213c2e00..c9384ef38 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -7,7 +7,11 @@ name: Ruby -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: jobs: check_react_and_ujs: