summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-05-04 20:59:52 +0530
committerGitHub <noreply@github.com>2020-05-04 20:59:52 +0530
commitf99a14d95b7f9df482585f043ce1263662e66132 (patch)
treec27a7ff0646c2042eb97e3f489abda4395dcd593
parentadf38e95e627b999a657eb6e3340778928cbd420 (diff)
github: implement path filtering to run actions only when required (#760)
-rw-r--r--.github/workflows/branch_deploy.yml8
-rw-r--r--.github/workflows/pull_request.yml11
-rw-r--r--.github/workflows/validate_wrapper.yml8
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: