Allow empty tag prefix

This commit is contained in:
Paul Hatcherian 2019-12-11 23:39:03 -05:00
parent 118c3fd956
commit 8af45c2a76
4 changed files with 17 additions and 4 deletions

2
dist/index.js vendored
View file

@ -674,7 +674,7 @@ async function run() {
const remoteExists = remote !== '';
const remotePrefix = remoteExists ? 'origin/' : '';
const tagPrefix = core.getInput('tag_prefix', { required: true });
const tagPrefix = core.getInput('tag_prefix') || '';
const branch = `${remotePrefix}${core.getInput('branch', { required: true })}`;
const majorPattern = core.getInput('major_pattern', { required: true });
const minorPattern = core.getInput('minor_pattern', { required: true });