Skip to content

Commit

Permalink
log github.event
Browse files Browse the repository at this point in the history
  • Loading branch information
JKarlavige committed Nov 1, 2023
1 parent 98f4628 commit 9bb9cac
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/crawler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@ on:
push:
branches: [ current, automate-crawler ]

# 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' }}
# if: ${{ github.event.label.name == 'trigger-crawl' }}
name: Trigger Algolia Crawl
runs-on: ubuntu-latest
steps:
# Checkout repo
- name: Checkout Repo
uses: actions/checkout@v2

- name: Dump GitHub context
env:
EVENT_CONTEXT: ${{ toJson(github.event) }}
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'
# - 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'

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

0 comments on commit 9bb9cac

Please sign in to comment.