Allow no tag if id is given, clarify error message

This commit is contained in:
patrick brisbin 2023-05-26 12:05:17 -04:00
parent 045ffa62b4
commit aad5059670
No known key found for this signature in database
GPG key ID: 07BF97A312D7F34C

View file

@ -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);