Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

[Fix] Address review feedback on release workflow

Yuneng Jiang8071691ffcf2
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 2572408ac62..2ae01823a96 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -52,7 +52,7 @@ jobs:
``,
'```bash',
`cosign verify \\`,
- ` --key https://raw.githubusercontent.com/BerriAI/litellm/main/cosign.pub \\`,
+ ` --key https://raw.githubusercontent.com/BerriAI/litellm/${tag}/cosign.pub \\`,
` ghcr.io/berriai/litellm:${tag}`,
'```',
``,
@@ -70,7 +70,7 @@ jobs:
try {
const response = await github.rest.repos.createRelease({
- draft: false,
+ draft: true,
generate_release_notes: true,
target_commitish: commitHash,
name: tag,
@@ -80,12 +80,13 @@ jobs:
tag_name: tag,
});
- const updatedBody = cosignSection + response.data.body;
+ const updatedBody = cosignSection + (response.data.body ?? '');
await github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: response.data.id,
body: updatedBody,
+ draft: false,
});
} catch (error) {
core.setFailed(error.message);