From e2346cc130d7bc19a7816c1e79c7feafcc4aeb2d Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Thu, 2 Nov 2023 15:15:50 +0900 Subject: [PATCH 1/2] run when needed --- .github/workflows/build.yml | 8 +++++++- .github/workflows/coveritup.yml | 8 +++++++- .github/workflows/test.yml | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e169f4..61636c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,10 @@ -on: [push, pull_request] +on: + pull_request: + paths: + - '**/*.go' + - '**/*.mod' + - '**/*.sum' + - '**/*.yaml' name: CI jobs: build: diff --git a/.github/workflows/coveritup.yml b/.github/workflows/coveritup.yml index 9e49a3f..816a905 100644 --- a/.github/workflows/coveritup.yml +++ b/.github/workflows/coveritup.yml @@ -1,4 +1,10 @@ -on: [push, pull_request] +on: + pull_request: + paths: + - '**/*.go' + - '**/*.mod' + - '**/*.sum' + - '**/*.yaml' name: Cover It Up jobs: coveritup: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f00627..7052437 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,10 @@ -on: [pull_request] +on: + pull_request: + paths: + - '**/*.go' + - '**/*.mod' + - '**/*.sum' + - '**/*.yaml' name: CI jobs: test: From 5d396a4d7b3f4aa045dc41bc41c53b5a8b9e5572 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Thu, 2 Nov 2023 15:16:56 +0900 Subject: [PATCH 2/2] push too --- .github/workflows/coveritup.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/coveritup.yml b/.github/workflows/coveritup.yml index 816a905..ba96786 100644 --- a/.github/workflows/coveritup.yml +++ b/.github/workflows/coveritup.yml @@ -5,6 +5,12 @@ on: - '**/*.mod' - '**/*.sum' - '**/*.yaml' + push: + paths: + - '**/*.go' + - '**/*.mod' + - '**/*.sum' + - '**/*.yaml' name: Cover It Up jobs: coveritup: