From 890493261c63e2d98c5efae4e1806470015ff938 Mon Sep 17 00:00:00 2001 From: Stanislav Katkov Date: Mon, 9 Oct 2023 23:14:35 +0200 Subject: [PATCH 1/2] CI: run checks for PR's --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 845d9ad..522eb9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,10 @@ name: Build -on: [push] + +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: rubocop: From a0324670b6fda41314ccbcf9d86ace0461022c84 Mon Sep 17 00:00:00 2001 From: "Stanislav (Stas) Katkov" Date: Tue, 10 Oct 2023 11:55:16 +0200 Subject: [PATCH 2/2] Update main.yml Simplify --- .github/workflows/main.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 522eb9e..0a6265d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,5 @@ name: Build - -on: - push: - branches: [main] - pull_request: - branches: [main] +on: [push, pull_request] jobs: rubocop: