From 07b79833a9ea7c406b55e7b0af3673f374a1cbcf Mon Sep 17 00:00:00 2001 From: Priyank Patel Date: Fri, 17 Jul 2020 18:27:19 +0000 Subject: [PATCH] github-actions: Only run production suite on production related updates. The production suite will only run if anything under puppet, scripts, and tools or any migrations are updated. The '**' glob means it includes subdirectory updates. For migrations all ~5 migrations directories are includes using the **/migrations/** pattern. The GitHub Action docs that explain the syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet --- .github/workflows/production-suite.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.yml index 10d45dc0b6..0ab50e2632 100644 --- a/.github/workflows/production-suite.yml +++ b/.github/workflows/production-suite.yml @@ -2,7 +2,27 @@ name: Zulip Production Suite on: push: + paths: + - "**/migrations/**" + - puppet/** + - requirements/** + - scripts/** + - static/** + - tools/** + - zproject/** + - yarn.lock + - .github/workflows/production-suite.yml pull_request: + paths: + - "**/migrations/**" + - puppet/** + - requirements/** + - scripts/** + - static/** + - tools/** + - zproject/** + - yarn.lock + - .github/workflows/production-suite.yml defaults: run: