Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heineiuo committed Apr 12, 2022
1 parent 5b45c69 commit 0b70ec8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async function parseCommitMessage() {
const log = await git.log()
const latestMessage = log.latest.message
const parsed = semver.parse(latestMessage)
console.log(parsed)
if (parsed) {
Object.assign(result, parsed)
result.valid = true
Expand All @@ -140,7 +141,9 @@ async function parseCommitMessage() {
result.is_prerelease = false
}
}
} catch(e){}
} catch(e){
console.log(e)
}
return result;
}

Expand Down Expand Up @@ -3499,6 +3502,7 @@ async function run() {
core.setOutput(outputName, result[outputName] || null);
}
} catch (error) {
console.log(error)
core.setFailed(error.message);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function run() {
core.setOutput(outputName, result[outputName] || null);
}
} catch (error) {
console.log(error)
core.setFailed(error.message);
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ async function parseCommitMessage() {
const log = await git.log()
const latestMessage = log.latest.message
const parsed = semver.parse(latestMessage)
console.log(parsed)
if (parsed) {
Object.assign(result, parsed)
result.valid = true
Expand All @@ -45,7 +46,9 @@ async function parseCommitMessage() {
result.is_prerelease = false
}
}
} catch(e){}
} catch(e){
console.log(e)
}
return result;
}

Expand Down

0 comments on commit 0b70ec8

Please sign in to comment.