From 40735124ed33b7759b3f25928519f6da5e369d7f Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Sat, 17 Sep 2022 13:42:16 +0200 Subject: [PATCH] ci: change theme-preview action run condition (#1903) This commit makes sure that the theme-preview action only runs when a theme was added or changed. --- .github/workflows/preview-theme.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview-theme.yml b/.github/workflows/preview-theme.yml index f102b59c..db7e291d 100644 --- a/.github/workflows/preview-theme.yml +++ b/.github/workflows/preview-theme.yml @@ -5,8 +5,10 @@ on: types: [opened, synchronize, reopened] branches: - master - - theme-preview-script + - theme_preview_script + paths: - "themes/index.js" + - "scripts/preview-theme.js" jobs: build: