Skip to content

Commit

Permalink
fix: commit id 读取出错
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Mar 23, 2022
1 parent 4cd5188 commit d15fc80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def start(event={}, context={}):
config = json5.load(f)

print('Version:', config['version'])
print('Commit ID:', config['sha'])
if 'sha' in config:
print('Commit ID:', config['sha'])

# 公共配置
setting = config['setting']
Expand Down
2 changes: 1 addition & 1 deletion updateconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def before(src, dst):
if len(result) == 40 and ' ' not in result:
dst['sha'] = result
else:
del dst['sha']
dst['sha'] = ''

for user in src['users']:
if 'md5' in user:
Expand Down

0 comments on commit d15fc80

Please sign in to comment.