fix: update target_commitish of release

This commit is contained in:
Akkuman 2024-02-21 17:10:17 +08:00
parent 69c9a2be62
commit 0611a9a1a0
2 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View file

@ -40967,7 +40967,7 @@ async function createOrGetRelease(client, owner, repo, body) {
name: body.name || release.name,
prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease,
tag_name: body.tag_name || release.tag_name,
target_commitish: body.target_commitish || release.target_commitish,
target_commitish: target_commitish,
}
})
return release

View file

@ -5,7 +5,7 @@ import * as glob from "glob";
import core from "@actions/core";
import gitea from "gitea-api";
import path from 'path'
import path from 'path';
async function run() {
try {
@ -80,7 +80,7 @@ async function createOrGetRelease(client, owner, repo, body) {
name: body.name || release.name,
prerelease: body.prerelease !== undefined ? body.prerelease : release.prerelease,
tag_name: body.tag_name || release.tag_name,
target_commitish: body.target_commitish || release.target_commitish,
target_commitish: target_commitish,
}
})
return release