forked from phoenix/litellm-mirror
fix - deploy release with a commit hash
This commit is contained in:
parent
7fdb4e356a
commit
6f6c2d2648
1 changed files with 4 additions and 2 deletions
4
.github/workflows/ghcr_deploy.yml
vendored
4
.github/workflows/ghcr_deploy.yml
vendored
|
@ -242,11 +242,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
script: |
|
script: |
|
||||||
|
const commitHash = "${{ github.event.inputs.commit_hash}}";
|
||||||
|
console.log("Commit Hash:", commitHash); // Add this line for debugging
|
||||||
try {
|
try {
|
||||||
const response = await github.rest.repos.createRelease({
|
const response = await github.rest.repos.createRelease({
|
||||||
draft: false,
|
draft: false,
|
||||||
generate_release_notes: true,
|
generate_release_notes: true,
|
||||||
target_commitish: ${{ github.event.inputs.commit_hash}},
|
target_commitish: commitHash,
|
||||||
name: process.env.RELEASE_TAG,
|
name: process.env.RELEASE_TAG,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
prerelease: false,
|
prerelease: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue