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

@ -6,8 +6,8 @@ import { env } from "process";
async function run() { async function run() {
try { try {
const config = parseConfig(env); 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`); throw new Error(`⚠️ GitHub Releases requires a tag`);
} }
GitHub.plugin(require("@octokit/plugin-throttling")); GitHub.plugin(require("@octokit/plugin-throttling"));