mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-14 04:04:20 +00:00
Add a new boolean flag to control tag deletion
Most tags are considered immutable, so you have to explicity opt into this behaviour
This commit is contained in:
parent
a80139913a
commit
1283c2357e
3 changed files with 35 additions and 0 deletions
|
@ -8,6 +8,7 @@ export interface Config {
|
|||
// user provided
|
||||
input_name?: string;
|
||||
input_tag_name?: string;
|
||||
input_move_existing_tag?: boolean;
|
||||
input_repository?: string;
|
||||
input_body?: string;
|
||||
input_body_path?: string;
|
||||
|
@ -55,6 +56,7 @@ export const parseConfig = (env: Env): Config => {
|
|||
github_repository: env.INPUT_REPOSITORY || env.GITHUB_REPOSITORY || "",
|
||||
input_name: env.INPUT_NAME,
|
||||
input_tag_name: env.INPUT_TAG_NAME?.trim(),
|
||||
input_move_existing_tag: env.INPUT_MOVE_EXISTING_TAG ? env.INPUT_MOVE_EXISTING_TAG === "true" : undefined,
|
||||
input_body: env.INPUT_BODY,
|
||||
input_body_path: env.INPUT_BODY_PATH,
|
||||
input_files: parseInputFiles(env.INPUT_FILES || ""),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue