From ec22aa81a44bd338285bf09fc80f1dcdd38027b8 Mon Sep 17 00:00:00 2001 From: mhmdanas Date: Fri, 6 Aug 2021 23:53:43 +0300 Subject: [PATCH] Don't run CI on changes to unrelated files --- .github/workflows/check_license.yml | 16 +++++++++++++++- .github/workflows/lint.yml | 16 +++++++++++++++- .github/workflows/tests.yml | 16 +++++++++++++++- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_license.yml b/.github/workflows/check_license.yml index b0cfcb0b6..a98487905 100644 --- a/.github/workflows/check_license.yml +++ b/.github/workflows/check_license.yml @@ -3,7 +3,21 @@ name: Check licenses -on: [push, pull_request] +on: + push: + paths-ignore: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - README.md + - 'fastlane/**' + - .github/FUNDING.yml + pull_request: + paths-ignore: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - README.md + - 'fastlane/**' + - .github/FUNDING.yml jobs: build: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b967f5e71..03da738b3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,20 @@ name: Lint -on: [push, pull_request] +on: + push: + paths-ignore: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - README.md + - 'fastlane/**' + - .github/FUNDING.yml + pull_request: + paths-ignore: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - README.md + - 'fastlane/**' + - .github/FUNDING.yml jobs: build: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5defe5067..4db697ed5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,20 @@ name: Run tests -on: [push, pull_request] +on: + push: + paths-ignore: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - README.md + - 'fastlane/**' + - .github/FUNDING.yml + pull_request: + paths-ignore: + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + - README.md + - 'fastlane/**' + - .github/FUNDING.yml jobs: test: