fix: trimming tag_name to avoid error 422 when creating release (#130)

This commit is contained in:
Tomer Figenblat 2021-07-30 16:09:00 +03:00 committed by GitHub
parent fb0163a75b
commit d2a05f5e5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -46,7 +46,7 @@ export const parseConfig = (env: Env): Config => {
github_ref: env.GITHUB_REF || "",
github_repository: env.INPUT_REPOSITORY || env.GITHUB_REPOSITORY || "",
input_name: env.INPUT_NAME,
input_tag_name: env.INPUT_TAG_NAME,
input_tag_name: env.INPUT_TAG_NAME?.trim(),
input_body: env.INPUT_BODY,
input_body_path: env.INPUT_BODY_PATH,
input_files: parseInputFiles(env.INPUT_FILES || ""),