mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-10-10 18:41:39 +00:00
Add tag_name option (#39)
Allow setting tag name like actions/create-release.
This commit is contained in:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user