diff --git a/dist/index.js b/dist/index.js index 0e86efa..cf048f7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12873,7 +12873,7 @@ const { owner, repo } = Github.context.repo; async function run() { try { // Validate envs and inputs - if (/^([\w-]+)$/.test(versionPrefix) === false) { + if (versionPrefix !== "" && /^([\w-]+)$/.test(versionPrefix) === false) { core.setFailed('Invalid version prefix.'); return; } diff --git a/index.ts b/index.ts index 1d28d0e..4294f04 100755 --- a/index.ts +++ b/index.ts @@ -40,7 +40,7 @@ const {owner, repo} = Github.context.repo async function run() { try { // Validate envs and inputs - if(/^([\w-]+)$/.test(versionPrefix) === false) { + if(versionPrefix !== "" && /^([\w-]+)$/.test(versionPrefix) === false) { core.setFailed('Invalid version prefix.'); return }