From e74b80a021be99a36e26568c43390a5b63004ede Mon Sep 17 00:00:00 2001 From: Jason Karlavige Date: Wed, 1 Nov 2023 15:46:18 -0400 Subject: [PATCH] wait 10 minutes rather than watch for deployment --- .github/workflows/crawler.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/crawler.yml b/.github/workflows/crawler.yml index 96a70d9d1d0..793d93a6db0 100644 --- a/.github/workflows/crawler.yml +++ b/.github/workflows/crawler.yml @@ -7,7 +7,9 @@ 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: @@ -15,21 +17,8 @@ jobs: - 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 - uses: dorshinar/get-deployment-url@master - timeout-minutes: 15 - with: - token: ${{ github.token }} - # Check for deploy URL every 20 seconds - retryInterval: '20000' + # Wait 10 minutes to allow Vercel build to complete + - run: sleep 600 # Once deploy URL is found, trigger Algolia crawl - name: Run Algolia Crawler