mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-01 01:27:28 +00:00
* Replace yaml check with a dispatch call * split workflow * add branch for testing * access secrets properly * remove testing branch trigger
24 lines
718 B
YAML
24 lines
718 B
YAML
name: YAML Schema
|
|
|
|
on:
|
|
workflow_dispatch: # Activate this workflow manually
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Start a workflow in https://github.com/deepset-ai/haystack-json-schema
|
|
# https://docs.github.com/en/rest/repos/repos#create-a-repository-dispatch-event
|
|
- name: Dispatch to schemas repository
|
|
run: |
|
|
curl \
|
|
-X POST \
|
|
-H "Accept: application/vnd.github+json" \
|
|
-H "Authorization: Bearer ${{ secrets.HAYSTACK_BOT_TOKEN }}" \
|
|
https://api.github.com/repos/deepset-ai/haystack-json-schema/dispatches \
|
|
-d '{"event_type":"generate-pipeline-schemas","client_payload":{}}'
|