Skip to content

Commit

Permalink
trigger hosted chroma workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgere committed Mar 6, 2024
1 parent b7e8b62 commit e42beff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chroma-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Chroma Release
name: Chroma Release

on:
push:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/chroma-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Chroma trigger workflow
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Trigger Hosted Chroma Workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.HOSTED_CHROMA_WORKFLOW_DISPATCH_TOKEN }}
script: |
const result = await github.rest.actions.createWorkflowDispatch({
owner: 'chroma-core',
repo: 'hosted-chroma',
workflow_id: 'update_oss.yaml',
ref: 'main'
})
console.log(result)

0 comments on commit e42beff

Please sign in to comment.