simple attempt to handle name input if not a tag push triggered workflow

This commit is contained in:
Alkrun 2020-01-08 14:42:32 -06:00
parent b7e450da2a
commit 8f19e114db

View file

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