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