Skip to content

Commit 968401c

Browse files
Add logs
1 parent 1eef825 commit 968401c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ try {
77
console.log(`Checking version: ${version}!`);
88

99
var isValid = false;
10-
var re = new RegExp('[0-9]+\.[0-9]+\.[0-9]+(-(0|[1-9]\d*|(beta|alpha).*))?$');
10+
console.log(`isValid false`);
11+
var re = new RegExp("[0-9]+\.[0-9]+\.[0-9]+(-(0|[1-9]\d*|(beta|alpha).*))?$");
12+
console.log(`RegExp`);
1113
if (re.exec(version) != null) {
1214
isValid = true;
15+
console.log(`isValid true`);
1316
}
1417
core.setOutput("is-valid", isValid);
18+
console.log(`setOutput`);
1519
// Get the JSON webhook payload for the event that triggered the workflow
1620
const payload = JSON.stringify(github.context.payload, undefined, 2)
1721
console.log(`The event payload: ${payload}`);

0 commit comments

Comments
 (0)