diff --git a/dist/index.js b/dist/index.js index 558d038..45ba980 100644 --- a/dist/index.js +++ b/dist/index.js @@ -19248,7 +19248,10 @@ exports.executeOnRelease = async function executeOnRelease() { }); const releaseCandidateType = isReleaseCandidate(pullRequest, true); - if (!releaseCandidateType) return; + if (!releaseCandidateType) { + core.setOutput("result", "none"); + return; + } const currentBranch = pullRequest.head.ref; @@ -19259,11 +19262,13 @@ exports.executeOnRelease = async function executeOnRelease() { * Creating a release */ + core.setOutput("result", "release"); version = currentBranch.substring("release/".length); } else if (releaseCandidateType === "hotfix") { /** * Creating a hotfix release */ + core.setOutput("result", "hotfix"); const now = pullRequest.merged_at ? new Date(pullRequest.merged_at) : new Date(); diff --git a/src/post-release.js b/src/post-release.js index 664640c..77e54e0 100644 --- a/src/post-release.js +++ b/src/post-release.js @@ -27,7 +27,10 @@ exports.executeOnRelease = async function executeOnRelease() { }); const releaseCandidateType = isReleaseCandidate(pullRequest, true); - if (!releaseCandidateType) return; + if (!releaseCandidateType) { + core.setOutput("result", "none"); + return; + } const currentBranch = pullRequest.head.ref; @@ -38,11 +41,13 @@ exports.executeOnRelease = async function executeOnRelease() { * Creating a release */ + core.setOutput("result", "release"); version = currentBranch.substring("release/".length); } else if (releaseCandidateType === "hotfix") { /** * Creating a hotfix release */ + core.setOutput("result", "hotfix"); const now = pullRequest.merged_at ? new Date(pullRequest.merged_at) : new Date();