From bbeadfbab719b05abfa5e8baceedcdfbfe63ec7d Mon Sep 17 00:00:00 2001 From: Renat Date: Sat, 5 Oct 2024 09:29:07 -0700 Subject: [PATCH] Run GH Actions on separate events (push, pull_request). (#88) * Run GH Actions on separate events (push, pull_request). It should help to avoid duplicate execution in the pull requests. * Update remaining GH workflows --- .github/workflows/staticcheck.yml | 8 +++++++- .github/workflows/tests.yml | 8 +++++++- .github/workflows/vet.yml | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staticcheck.yml b/.github/workflows/staticcheck.yml index 67b2f09..a588c59 100644 --- a/.github/workflows/staticcheck.yml +++ b/.github/workflows/staticcheck.yml @@ -1,6 +1,12 @@ name: Static Checks -on: [ "push", "pull_request" ] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: staticcheck: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b7227e3..5e2b703 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,12 @@ name: Go tests -on: [ push, pull_request ] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: go-test: diff --git a/.github/workflows/vet.yml b/.github/workflows/vet.yml index b374036..10d718f 100644 --- a/.github/workflows/vet.yml +++ b/.github/workflows/vet.yml @@ -1,6 +1,12 @@ name: Linter -on: [ "push", "pull_request" ] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: vet: