From aad5059670c7fb5b529e192476f5fe0734243d0d Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Fri, 26 May 2023 12:05:17 -0400 Subject: [PATCH] Allow no tag if id is given, clarify error message --- src/main.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index d977f1f..d9a8294 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,9 +18,12 @@ async function run() { if ( !config.input_tag_name && !isTag(config.github_ref) && - !config.input_draft + !config.input_draft && + !config.input_id ) { - throw new Error(`⚠️ GitHub Releases requires a tag`); + throw new Error( + `⚠️ You must supply tag_name, an id to an existing Release to update, or use draft:true` + ); } if (config.input_files) { const patterns = unmatchedPatterns(config.input_files);