forked from mirrors/action-gh-release
Add tag_name option (#39)
Allow setting tag name like actions/create-release.
This commit is contained in:
parent
b7e450da2a
commit
9f4852ebe6
7 changed files with 18 additions and 7 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue