Skip to content

Commit

Permalink
wait 10 minutes rather than watch for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
JKarlavige committed Nov 1, 2023
1 parent 28fefec commit e74b80a
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/crawler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,18 @@ 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
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
Expand Down

0 comments on commit e74b80a

Please sign in to comment.