mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2024-11-23 09:53:58 +08:00
fix: update target_commitish of release
This commit is contained in:
parent
69c9a2be62
commit
0611a9a1a0
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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
|
||||
|
4
main.js
4
main.js
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user