From 110066c2d6626ba26b55660b6e9a00294140b6be Mon Sep 17 00:00:00 2001 From: Niladri Halder <55788661+niladrih@users.noreply.github.com> Date: Tue, 6 Apr 2021 20:04:25 +0530 Subject: [PATCH] chore(github-action): avoid builds for pushes to helm chart and docs files (#562) - add paths-ignore parameter - included pull_request.yml and added changelogs directory to ignore path Signed-off-by: Niladri Halder --- .github/workflows/build.yml | 7 ++++++- .github/workflows/pull_request.yml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 034ba1551..dffaa0ae9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,12 @@ # limitations under the License. name: build -on: ['push'] +on: + push: + paths-ignore: + - 'docs/**' + - 'deploy/helm/**' + - 'changelogs/**' jobs: lint: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 59fe50b9b..0706178f9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -17,7 +17,9 @@ name: ci on: pull_request: paths-ignore: + - 'docs/**' - 'deploy/helm/**' + - 'changelogs/**' branches: # on pull requests to master and release branches - master