From 4058ea00e28bef0e682c60fcc26c7a720073c45e Mon Sep 17 00:00:00 2001 From: Jason Karlavige Date: Wed, 1 Nov 2023 13:35:02 -0400 Subject: [PATCH] run when merged === false to test --- .github/workflows/crawler.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/crawler.yml b/.github/workflows/crawler.yml index 231f6e32fed..44be5eb0759 100644 --- a/.github/workflows/crawler.yml +++ b/.github/workflows/crawler.yml @@ -1,14 +1,14 @@ name: Algolia Crawler on: - #push: - #branches: [ current, automate-crawler ] pull_request: types: ['opened', 'edited', 'reopened', 'synchronize'] jobs: algolia_recrawl: - # if: ${{ github.event.label.name == 'trigger-crawl' }} - # if: github.event.pull_request.merged == true + if: ${{ + contains(github.event.pull_request.labels.*.name, 'trigger-crawl') && + github.event.pull_request.merged == false + }} name: Trigger Algolia Crawl runs-on: ubuntu-latest steps: