Skip to content

Commit 4ad2997

Browse files
committed
compatibility: lower boolean values in env
1 parent 37a9598 commit 4ad2997

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/deploy-image.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ name: Create and publish a Docker image
1212
on:
1313
push:
1414
branches: ['master']
15-
release:
16-
types: [published]
15+
create:
1716
env:
1817
REGISTRY: ghcr.io
1918
IMAGE_NAME: ${{ github.repository }}

config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ def load_config():
124124
try:
125125
config[name] = eval(value)
126126
except:
127-
config[name] = value
127+
if value == "false":
128+
config[name] = False
129+
elif value == "true":
130+
config[name] = True
131+
else:
132+
config[name] = value
128133

129134
logger.info("[INIT] load config: {}".format(config))
130135

0 commit comments

Comments
 (0)