Skip to content

run when merged === false to test #9

run when merged === false to test

run when merged === false to test #9

Workflow file for this run

name: Algolia Crawler
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs:
algolia_recrawl:

Check failure on line 7 in .github/workflows/crawler.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/crawler.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
if: ${{
contains(github.event.pull_request.labels.*.name, 'trigger-crawl') &&
github.event.pull_request.merged == false
}}
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.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'
# Once deploy URL is found, trigger Algolia crawl
#- name: Run Algolia Crawler
# uses: algolia/algoliasearch-crawler-github-actions@v1
# id: crawler_push
# with:
# crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
# crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
# algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
# algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
# site-url: 'https://docs.getdbt.com'
# crawler-name: ${{ secrets.CRAWLER_NAME }}