mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +08:00
compatibility: lower boolean values in env
This commit is contained in:
3
.github/workflows/deploy-image.yml
vendored
3
.github/workflows/deploy-image.yml
vendored
@@ -12,8 +12,7 @@ name: Create and publish a Docker image
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['master']
|
branches: ['master']
|
||||||
release:
|
create:
|
||||||
types: [published]
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|||||||
@@ -124,7 +124,12 @@ def load_config():
|
|||||||
try:
|
try:
|
||||||
config[name] = eval(value)
|
config[name] = eval(value)
|
||||||
except:
|
except:
|
||||||
config[name] = value
|
if value == "false":
|
||||||
|
config[name] = False
|
||||||
|
elif value == "true":
|
||||||
|
config[name] = True
|
||||||
|
else:
|
||||||
|
config[name] = value
|
||||||
|
|
||||||
logger.info("[INIT] load config: {}".format(config))
|
logger.info("[INIT] load config: {}".format(config))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user