From f43ac52d5e83f322be534718fce515feffa4ffc9 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 2 Aug 2021 11:42:31 -0700 Subject: [PATCH] Expand compilation workflow's paths filter to cover more irrelevant files The paths filter is used to make GitHub Actions workflows more efficient and contributor friendly by preventing pointless workflow runs from happening when only irrelevant files were modified. --- .github/workflows/compile-examples.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c3f8074..5c3693a 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -16,13 +16,25 @@ name: Compile Examples on: pull_request: - paths: - - ".github/workflows/compile-examples.yml" - - "examples/**" + paths-ignore: + - "**" + - "!.github/workflows/compile-examples.ya?ml" + - "!examples/**" + - "**.adoc" + - "**.jpg" + - "**.md" + - "**.png" + - "**.txt" push: - paths: - - ".github/workflows/compile-examples.yml" - - "examples/**" + paths-ignore: + - "**" + - "!.github/workflows/compile-examples.ya?ml" + - "!examples/**" + - "**.adoc" + - "**.jpg" + - "**.md" + - "**.png" + - "**.txt" # Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms) schedule: # run every Tuesday at 3 AM UTC