forked from mirrors/action-gh-release
allow creating draft releases without a tag (#95)
Co-authored-by: Doug Tangren <d.tangren@gmail.com>
This commit is contained in:
parent
3973e5f15a
commit
e314c6fe22
2 changed files with 10 additions and 3 deletions
|
@ -7,7 +7,11 @@ import { env } from "process";
|
|||
async function run() {
|
||||
try {
|
||||
const config = parseConfig(env);
|
||||
if (!config.input_tag_name && !isTag(config.github_ref)) {
|
||||
if (
|
||||
!config.input_tag_name &&
|
||||
!isTag(config.github_ref) &&
|
||||
!config.input_draft
|
||||
) {
|
||||
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
||||
}
|
||||
if (config.input_files) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue