diff --git a/.github/workflows/trigger-vectordb-recipes.yml b/.github/workflows/trigger-vectordb-recipes.yml new file mode 100644 index 00000000..e6a9bc84 --- /dev/null +++ b/.github/workflows/trigger-vectordb-recipes.yml @@ -0,0 +1,26 @@ +name: Trigger vectordb-recipers workflow +on: + push: + branches: [ main ] + pull_request: + paths: + - .github/workflows/trigger-vectordb-recipes.yml + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Trigger vectordb-recipes workflow + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.VECTORDB_RECIPES_ACTION_TOKEN }} + script: | + const result = await github.rest.actions.createWorkflowDispatch({ + owner: 'lancedb', + repo: 'vectordb-recipes', + workflow_id: 'examples-test.yml', + ref: 'main' + }); + console.log(result); \ No newline at end of file