Skip to content

Commit

Permalink
adjust if check
Browse files Browse the repository at this point in the history
  • Loading branch information
JKarlavige committed Nov 1, 2023
1 parent 6a5d588 commit 28fefec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/crawler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ on:
jobs:
algolia_recrawl:
# Comment out the if check below if running on every merge to current branch
if: ${{ contains(github.event.pull_request.labels.*.name, 'trigger-crawl') && github.event.pull_request.merged == true }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'trigger-crawl') }} && ${{ github.event.pull_request.merged == true }}
name: Trigger Algolia Crawl
runs-on: ubuntu-latest
steps:
# Checkout repo
- name: Checkout Repo
uses: actions/checkout@v3

- name: Dump GitHub context
env:
EVENT_CONTEXT: ${{ toJson(github.event.pull_request) }}
run: |
echo "$EVENT_CONTEXT"
# Wait for deploy URL to be available from Vercel
- name: Get deployment URL
id: deployment
Expand Down

0 comments on commit 28fefec

Please sign in to comment.