8000 Update stage calculation (#1093) · tomrow/python-editor-v3@103a8e0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 103a8e0

Browse files
Update stage calculation (microbit-foundation#1093)
Closes microbit-foundation#1092
1 parent 1816166 commit 103a8e0
8000

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

bin/print-ci-env-stage.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#!/usr/bin/env node
22
const ref = process.env.GITHUB_REF;
3-
const eventName = process.env.GITHUB_EVENT_NAME;
4-
5-
let stage = "";
3+
let stage;
64
if (ref === "refs/heads/main") {
7-
if (eventName === "release") {
8-
stage = "PRODUCTION";
9-
} else {
10-
stage = "STAGING";
11-
}
5+
stage = "STAGING";
6+
} else if (ref.startsWith("refs/tags/v")) {
7+
stage = "PRODUCTION";
128
} else {
139
stage = "REVIEW";
1410
}

0 commit comments

Comments
 (0)
0