Skip to content

Commit

Permalink
chore: Fix remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
dgusakov committed Aug 30, 2022
1 parent 0600ca1 commit 4e5fd06
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ async function handleVersioningByExtension(ext, file, versionPath, releaseType)

async function run() {
try {

process.on('unhandledRejection', (reason, promise) => {
let error = `Unhandled Rejection occurred. Reason: ${reason.stack}`
console.error(error)
core.setFailed(error)
});

let gitCommitMessage = core.getInput('git-message')
const gitUserName = core.getInput('git-user-name')
const gitUserEmail = core.getInput('git-user-email')
Expand Down Expand Up @@ -243,4 +236,10 @@ async function run() {
}
}

process.on('unhandledRejection', (reason, promise) => {
let error = `Unhandled Rejection occurred. ${reason.stack}`
console.error(error)
core.setFailed(error)
});

run()

0 comments on commit 4e5fd06

Please sign in to comment.