Skip to content

Commit

Permalink
update timeout length and test with label
Browse files Browse the repository at this point in the history
  • Loading branch information
JKarlavige committed Nov 1, 2023
1 parent 9fffb10 commit 4e61a45
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/crawler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ name: Algolia Crawler
on:
push:
branches: [ current ]

# Only used for testing within PR, delete before merge
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
algolia_recrawl:
if: ${{ github.event.label.name == 'trigger-crawl' }}
name: Trigger Algolia Crawl
runs-on: ubuntu-latest
steps:
Expand All @@ -18,11 +21,11 @@ jobs:
- name: Get deployment URL
id: deployment
uses: dorshinar/get-deployment-url@master
timeout-minutes: 10
timeout-minutes: 15
with:
token: ${{ github.token }}
# Check for deploy URL every 30 seconds
retryInterval: '30000'
# Check for deploy URL every 20 seconds
retryInterval: '20000'

# Once deploy URL is found, trigger Algolia crawl
- name: Run Algolia Crawler
Expand Down

0 comments on commit 4e61a45

Please sign in to comment.