Skip to content

Commit bd8217a

Browse files
committed
fix bug with generate-ci-env.ts
1 parent 5f1c615 commit bd8217a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/generate-ci-env.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import path from 'path'
88
import { fileURLToPath } from 'url'
99

10-
import { CLIENT_ENV_PREFIX, clientEnvSchema } from '@codebuff/common/env-schema'
11-
import { serverEnvSchema } from '@codebuff/internal/env-schema'
10+
import { CLIENT_ENV_PREFIX, clientEnvVars } from '@codebuff/common/env-schema'
11+
import { serverEnvVars } from '@codebuff/internal/env-schema'
1212

1313
const __filename = fileURLToPath(import.meta.url)
1414
const __dirname = path.dirname(__filename)
@@ -50,8 +50,8 @@ function parseArgs() {
5050
function generateGitHubEnv() {
5151
const { prefix, scope } = parseArgs()
5252
const varsByScope = {
53-
all: Object.keys(serverEnvSchema),
54-
client: Object.keys(clientEnvSchema),
53+
all: serverEnvVars,
54+
client: clientEnvVars,
5555
}
5656

5757
let selected: string[] = []

0 commit comments

Comments
 (0)