From f2e6332b78e87b87ead5510b923ea357d91cdbfc Mon Sep 17 00:00:00 2001 From: guoxudong Date: Mon, 15 Nov 2021 11:04:32 +0800 Subject: [PATCH] update action config (#75) --- .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/go.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 89883f1e..aed99168 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,9 +14,13 @@ name: "CodeQL" on: push: branches: [ master ] + paths: + - '**.go' pull_request: # The branches below must be a subset of the branches above branches: [ master ] + paths: + - '**.go' schedule: - cron: '31 7 * * 3' diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 4a1c0b9a..8a1c484c 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -4,7 +4,11 @@ on: push: branches: - "master" + paths: + - '**.go' pull_request: + paths: + - '**.go' jobs: test: