Skip to content
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
Expand Down
7 changes: 6 additions & 1 deletion src/post-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
Expand Down