From cf977866d8e74879e873a9649443e8018cec7978 Mon Sep 17 00:00:00 2001 From: Leon Yee <43097991+unkn-wn@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:27:08 -0700 Subject: [PATCH] [WIP] Workflow to trigger vectordb-recipes workflow (#371) --- .../workflows/trigger-vectordb-recipes.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/trigger-vectordb-recipes.yml 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