From 8ad6c9bf320b1a475debd46f8167591fc818aba7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 6 May 2020 07:10:09 -0700 Subject: [PATCH] Only run Compile Examples workflow when relevant files are modified Running the Compile Examples GitHub Actions workflow is only necessary when files under examples/ or src/, or the workflow configuration itself are modified. For any other changes, the workflow run only slows down the CI results and causes unnecessary comments from the report-size-deltas workflow. --- .github/workflows/compile-examples.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 7f212efc..f5876041 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -1,5 +1,17 @@ name: Compile Examples -on: [push, pull_request] + +on: + pull_request: + paths: + - ".github/workflows/compile-examples.yml" + - "examples/**" + - "src/**" + push: + paths: + - ".github/workflows/compile-examples.yml" + - "examples/**" + - "src/**" + jobs: build: runs-on: ubuntu-latest