Skip to content

Commit 30a0a55

Browse files
committed
lint and build
1 parent a7bfe80 commit 30a0a55

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

dist/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19248,7 +19248,10 @@ exports.executeOnRelease = async function executeOnRelease() {
1924819248
});
1924919249

1925019250
const releaseCandidateType = isReleaseCandidate(pullRequest, true);
19251-
if (!releaseCandidateType) return;
19251+
if (!releaseCandidateType) {
19252+
core.setOutput("result", "none");
19253+
return;
19254+
}
1925219255

1925319256
const currentBranch = pullRequest.head.ref;
1925419257

@@ -19259,11 +19262,13 @@ exports.executeOnRelease = async function executeOnRelease() {
1925919262
* Creating a release
1926019263
*/
1926119264

19265+
core.setOutput("result", "release");
1926219266
version = currentBranch.substring("release/".length);
1926319267
} else if (releaseCandidateType === "hotfix") {
1926419268
/**
1926519269
* Creating a hotfix release
1926619270
*/
19271+
core.setOutput("result", "hotfix");
1926719272
const now = pullRequest.merged_at
1926819273
? new Date(pullRequest.merged_at)
1926919274
: new Date();

src/post-release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exports.executeOnRelease = async function executeOnRelease() {
2828

2929
const releaseCandidateType = isReleaseCandidate(pullRequest, true);
3030
if (!releaseCandidateType) {
31-
core.setOutput('result', 'none')
31+
core.setOutput("result", "none");
3232
return;
3333
}
3434

@@ -41,13 +41,13 @@ exports.executeOnRelease = async function executeOnRelease() {
4141
* Creating a release
4242
*/
4343

44-
core.setOutput('result', 'release')
44+
core.setOutput("result", "release");
4545
version = currentBranch.substring("release/".length);
4646
} else if (releaseCandidateType === "hotfix") {
4747
/**
4848
* Creating a hotfix release
4949
*/
50-
core.setOutput('result', 'hotfix')
50+
core.setOutput("result", "hotfix");
5151
const now = pullRequest.merged_at
5252
? new Date(pullRequest.merged_at)
5353
: new Date();

0 commit comments

Comments
 (0)