Add tag_name option (#39)

Allow setting tag name like actions/create-release.
This commit is contained in:
K.Takata 2020-01-09 15:06:19 +09:00 committed by Doug Tangren
parent b7e450da2a
commit 9f4852ebe6
7 changed files with 18 additions and 7 deletions

View file

@ -7,7 +7,7 @@ import { env } from "process";
async function run() {
try {
const config = parseConfig(env);
if (!isTag(config.github_ref)) {
if (!config.input_tag_name && !isTag(config.github_ref)) {
throw new Error(`⚠️ GitHub Releases requires a tag`);
}
GitHub.plugin(require("@octokit/plugin-throttling"));