init auto release project
This commit is contained in:
parent
9fda6b6e6f
commit
2f6fe3ff52
@ -16,6 +16,9 @@ inputs:
|
||||
target-commitish:
|
||||
description: "Commitish value that determines where the Git tag is created from"
|
||||
default: "main"
|
||||
prerelease:
|
||||
description: "Whether the release is a prerelease"
|
||||
default: "false"
|
||||
|
||||
runs:
|
||||
using: node20
|
||||
|
5
release/dist/index.js
vendored
5
release/dist/index.js
vendored
@ -33253,6 +33253,7 @@ async function run() {
|
||||
const token = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("token");
|
||||
const repository = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("repository");
|
||||
const target_commitish = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("target-commitish");
|
||||
const prerelease = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("prerelease") === "true";
|
||||
|
||||
const [owner, repo] = repository.split("/");
|
||||
|
||||
@ -33272,9 +33273,11 @@ async function run() {
|
||||
let response = await client.repository.repoCreateRelease({
|
||||
owner,
|
||||
repo,
|
||||
body: {
|
||||
tag_name: newVersion,
|
||||
target_commitish,
|
||||
name: newVersion,
|
||||
prerelease,
|
||||
},
|
||||
});
|
||||
console.log(`🎉 Release ready at ${response.html_url}`);
|
||||
} catch (error) {
|
||||
|
@ -8,6 +8,7 @@ async function run() {
|
||||
const token = core.getInput("token");
|
||||
const repository = core.getInput("repository");
|
||||
const target_commitish = core.getInput("target-commitish");
|
||||
const prerelease = core.getInput("prerelease") === "true";
|
||||
|
||||
const [owner, repo] = repository.split("/");
|
||||
|
||||
@ -27,9 +28,11 @@ async function run() {
|
||||
let response = await client.repository.repoCreateRelease({
|
||||
owner,
|
||||
repo,
|
||||
body: {
|
||||
tag_name: newVersion,
|
||||
target_commitish,
|
||||
name: newVersion,
|
||||
prerelease,
|
||||
},
|
||||
});
|
||||
console.log(`🎉 Release ready at ${response.html_url}`);
|
||||
} catch (error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user