From 0b70ec8be83146b9a564a2b640ba5ca9f48b2494 Mon Sep 17 00:00:00 2001 From: heineiuo Date: Tue, 12 Apr 2022 22:17:34 +0800 Subject: [PATCH] v1.4.0 --- dist/index.js | 6 +++++- src/actions.js | 1 + src/main.js | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9c0aa4b..94dc0f0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 @@ -140,7 +141,9 @@ async function parseCommitMessage() { result.is_prerelease = false } } - } catch(e){} + } catch(e){ + console.log(e) + } return result; } @@ -3499,6 +3502,7 @@ async function run() { core.setOutput(outputName, result[outputName] || null); } } catch (error) { + console.log(error) core.setFailed(error.message); } } diff --git a/src/actions.js b/src/actions.js index 7f0fd16..ceea1d1 100644 --- a/src/actions.js +++ b/src/actions.js @@ -11,6 +11,7 @@ async function run() { core.setOutput(outputName, result[outputName] || null); } } catch (error) { + console.log(error) core.setFailed(error.message); } } diff --git a/src/main.js b/src/main.js index aeb3ada..bd2fdc2 100644 --- a/src/main.js +++ b/src/main.js @@ -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 @@ -45,7 +46,9 @@ async function parseCommitMessage() { result.is_prerelease = false } } - } catch(e){} + } catch(e){ + console.log(e) + } return result; }