Skip to content

Commit

Permalink
Actually, put it all in the main method
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 20, 2021
1 parent d97dee7 commit f41afc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 5 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports.main = async function main() {
try {
const octokit = github.getOctokit(process.env.GITHUB_TOKEN)

const version = cleanupVersion(core.getInput('version'))
const version = core.getInput('version').replace(`refs/tags/`, ``)
const changelogBody = core.getInput('changelog')

// const issueReferenceExpression = /(?:(?<![/\w-.])\w[\w-.]+?\/\w[\w-.]+?|\B)#[1-9]\d*?\b/g // This one supports things like: doublethreedigital/runway#641
Expand All @@ -28,7 +28,3 @@ exports.main = async function main() {
core.setFailed(error.message)
}
}

function cleanupVersion(version) {
return version.replace(`refs/tags/`, ``)
}

0 comments on commit f41afc7

Please sign in to comment.