forked from phoenix/litellm-mirror
(ci/cd) trigger new release on docker deploys
This commit is contained in:
parent
4245274934
commit
2c88fd49a4
1 changed files with 23 additions and 0 deletions
23
.github/workflows/ghcr_deploy.yml
vendored
23
.github/workflows/ghcr_deploy.yml
vendored
|
@ -78,3 +78,26 @@ jobs:
|
|||
push: true
|
||||
tags: ${{ steps.meta-alpine.outputs.tags }}-${{ github.event.inputs.tag || github.event.release.tag_name || 'latest' }}
|
||||
labels: ${{ steps.meta-alpine.outputs.labels }}
|
||||
- name: Trigger new LiteLLM Release
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const { data: workflows } = await octokit.actions.listRepoWorkflows({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo
|
||||
});
|
||||
|
||||
const workflowB = workflows.workflows.find(workflow => workflow.name === 'Release');
|
||||
|
||||
if (workflowB) {
|
||||
await octokit.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: workflowB.id,
|
||||
ref: 'main' // Set the branch as needed
|
||||
});
|
||||
} else {
|
||||
throw new Error('Workflow B not found');
|
||||
}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue