Skip to content

Update CI script

Update CI script #1

name: Trigger app crawler
on:
push:
branches: [ '*' ]
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger Workflow in the app-crawler repository
run: |
repo_owner="timschneeb"
repo_name="app-crawler"
event_type="trigger-workflow"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CRAWL_TRIGGER_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {}"