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.
This commit is contained in:
Rick Staa 2022-09-17 13:42:16 +02:00 committed by GitHub
parent f9b9015ec2
commit 40735124ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,10 @@ on:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
branches: branches:
- master - master
- theme-preview-script - theme_preview_script
paths:
- "themes/index.js" - "themes/index.js"
- "scripts/preview-theme.js"
jobs: jobs:
build: build: