mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 18:44:19 +00:00
Allow no tag if id is given, clarify error message
This commit is contained in:
parent
045ffa62b4
commit
aad5059670
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue