From bd3d6d08db72cabc14956e441d1ce738e18b693a Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 5 May 2020 22:46:49 -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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 523e1eaba..60870a7ce 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -1,6 +1,16 @@ 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: