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