From 8f19e114dbd04970e241b869b601a01d180c1f1c Mon Sep 17 00:00:00 2001 From: Alkrun <46951943+Alkrun@users.noreply.github.com> Date: Wed, 8 Jan 2020 14:42:32 -0600 Subject: [PATCH] simple attempt to handle name input if not a tag push triggered workflow --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 3985ea1..5037ba0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,8 +6,8 @@ import { env } from "process"; async function run() { try { - const config = parseConfig(env); - if (!isTag(config.github_ref)) { + const config = parseConfig(env); + if (!isTag(config.github_ref) && !config.input_name) { throw new Error(`⚠️ GitHub Releases requires a tag`); } GitHub.plugin(require("@octokit/plugin-throttling"));