revert(cd): 恢复原生产发布脚本
build / build (push) Successful in 1m57s

This commit is contained in:
姚章浩
2026-11-24 23:37:56 +08:00
parent 49f9994ea6
commit bb57a9835c
3 changed files with 2 additions and 17 deletions
-6
View File
@@ -175,10 +175,6 @@ def metadata(task, key):
return json.loads(value) if isinstance(value, str) else None
def manual_demand(task):
return (task.get('typeId') or (task.get('type') or {}).get('id')) == '1b7f1bb1-72c2-4106-b305-85604cf6d7e2'
def check_task(task, request, receipt=None):
require(task.get('id') == request['task'] and task.get('spaceId') == SPACE, 'HiFox task or space mismatch')
status = (task.get('status') or {}).get('id')
@@ -565,8 +561,6 @@ class LiveHost:
fresh = self.task(task_id)
check_task(fresh, self.request, {'hifox': expected})
require(metadata(fresh, 'cd_release') == expected, 'HiFox release changed during comment writeback')
if manual_demand(fresh):
return
if fresh['status']['id'] != PUBLISHED:
self.hifox('task', 'edit', task_id, '--status', PUBLISHED)
final = self.task(task_id)