Skip to content

Commit

Permalink
Allow no tag if id is given, clarify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed May 26, 2023
1 parent 045ffa6 commit aad5059
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aad5059

Please sign in to comment.