From a1afa112d39eb8a91ff58476c3025306da79c60f Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 26 Oct 2022 09:57:31 +0100 Subject: [PATCH] Correctly parse `create_annotated_tag` (#137) --- src/action.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/action.ts b/src/action.ts index b1dff7c24..2a073169e 100644 --- a/src/action.ts +++ b/src/action.ts @@ -25,7 +25,9 @@ export default async function main() { const releaseBranches = core.getInput('release_branches'); const preReleaseBranches = core.getInput('pre_release_branches'); const appendToPreReleaseTag = core.getInput('append_to_pre_release_tag'); - const createAnnotatedTag = !!core.getInput('create_annotated_tag'); + const createAnnotatedTag = /true/i.test( + core.getInput('create_annotated_tag') + ); const dryRun = core.getInput('dry_run'); const customReleaseRules = core.getInput('custom_release_rules'); const shouldFetchAllTags = core.getInput('fetch_all_tags');