| 1 | name: Trigger vectordb-recipers workflow |
| 2 | on: |
| 3 | push: |
| 4 | branches: [ main ] |
| 5 | pull_request: |
| 6 | paths: |
| 7 | - .github/workflows/trigger-vectordb-recipes.yml |
| 8 | workflow_dispatch: |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | runs-on: ubuntu-latest |
| 13 | |
| 14 | steps: |
| 15 | - name: Trigger vectordb-recipes workflow |
| 16 | uses: actions/github-script@v6 |
| 17 | with: |
| 18 | github-token: ${{ secrets.VECTORDB_RECIPES_ACTION_TOKEN }} |
| 19 | script: | |
| 20 | const result = await github.rest.actions.createWorkflowDispatch({ |
| 21 | owner: 'lancedb', |
| 22 | repo: 'vectordb-recipes', |
| 23 | workflow_id: 'examples-test.yml', |
| 24 | ref: 'main' |
| 25 | }); |
| 26 | console.log(result); |