add support for prereleases. fixes #17

This commit is contained in:
softprops
2019-09-17 23:30:36 +09:00
parent bd839f3b8f
commit a95bad53b2
7 changed files with 20 additions and 5 deletions

View File

@ -11,6 +11,7 @@ export interface Config {
input_body_path?: string;
input_files?: string[];
input_draft?: boolean;
input_prerelease?: boolean;
}
type Env = { [key: string]: string | undefined };
@ -35,7 +36,8 @@ export const parseConfig = (env: Env): Config => {
input_body: env.INPUT_BODY,
input_body_path: env.INPUT_BODY_PATH,
input_files: parseInputFiles(env.INPUT_FILES || ""),
input_draft: env.INPUT_DRAFT === "true"
input_draft: env.INPUT_DRAFT === "true",
input_prerelease: env.INPUT_PRERELEASE == "true"
};
};