Skip to content

Commit

Permalink
Expand vars in tag and name inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Feb 1, 2022
1 parent 7136dfe commit b285009
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129344,12 +129344,16 @@ const generateReleaseInfo = ({

if (tag === undefined) {
tag = versionInfo ? template(config['tag-template'] || '', versionInfo) : ''
} else if(versionInfo) {
tag = template(tag, versionInfo)
}

if (name === undefined) {
name = versionInfo
? template(config['name-template'] || '', versionInfo)
: ''
} else if(versionInfo) {
name = template(name, versionInfo)
}

if (commitish === undefined) {
Expand Down
4 changes: 4 additions & 0 deletions lib/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,16 @@ const generateReleaseInfo = ({

if (tag === undefined) {
tag = versionInfo ? template(config['tag-template'] || '', versionInfo) : ''
} else if(versionInfo) {
tag = template(tag, versionInfo)
}

if (name === undefined) {
name = versionInfo
? template(config['name-template'] || '', versionInfo)
: ''
} else if(versionInfo) {
name = template(name, versionInfo)
}

if (commitish === undefined) {
Expand Down

0 comments on commit b285009

Please sign in to comment.