add support for prereleases. fixes #17
This commit is contained in:
@ -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"
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user