From f99a14d95b7f9df482585f043ce1263662e66132 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 4 May 2020 20:59:52 +0530 Subject: github: implement path filtering to run actions only when required (#760) --- .github/workflows/branch_deploy.yml | 8 ++++++++ .github/workflows/pull_request.yml | 11 ++++++++++- .github/workflows/validate_wrapper.yml | 8 +++++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch_deploy.yml b/.github/workflows/branch_deploy.yml index 7181faca..46f84ce0 100644 --- a/.github/workflows/branch_deploy.yml +++ b/.github/workflows/branch_deploy.yml @@ -2,6 +2,14 @@ on: push: branches-ignore: - master + paths: + - '.github/**' + - 'app/**' + - 'gradle/**' + - '*.properties' + - '*.gradle' + - 'gradlew' + - 'gradlew.bat' name: Build debug jobs: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a6cfccc3..59fd15f5 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,4 +1,13 @@ -on: pull_request +on: + pull_request: + paths: + - '.github/**' + - 'app/**' + - 'gradle/**' + - '*.properties' + - '*.gradle' + - 'gradlew' + - 'gradlew.bat' name: Check pull request jobs: diff --git a/.github/workflows/validate_wrapper.yml b/.github/workflows/validate_wrapper.yml index d1830265..e6405294 100644 --- a/.github/workflows/validate_wrapper.yml +++ b/.github/workflows/validate_wrapper.yml @@ -1,5 +1,11 @@ name: "Validate Gradle Wrapper" -on: pull_request +on: + pull_request: + paths: + - '.github/**' + - 'gradle/**' + - 'gradlew' + - 'gradlew.bat' jobs: validation: -- cgit v1.2.3