From 7eade85f18941822cb97e6565636bf5d758623a8 Mon Sep 17 00:00:00 2001 From: Anurag Date: Sat, 6 Nov 2021 20:17:14 +0530 Subject: [PATCH] chore: update github action trigger --- .github/workflows/preview-theme.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/preview-theme.yml b/.github/workflows/preview-theme.yml index 687543b..2e2fbb9 100644 --- a/.github/workflows/preview-theme.yml +++ b/.github/workflows/preview-theme.yml @@ -9,16 +9,19 @@ on: - "themes/index.js" issue_comment: types: [edited] - branches: - - master - - theme-preview-script - - "themes/index.js" jobs: + comment: + if: contains(github.event.comment.html_url, '/pull/') + runs-on: ubuntu-latest + steps: + - name: say hello + if: contains(github.event.comment.body, 'Automated Theme Preview') + run: | + echo say hello build: runs-on: ubuntu-latest name: Install & Preview - steps: - uses: actions/checkout@v1 - uses: bahmutov/npm-install@v1