webadmin端增加版本号和部署功能

This commit is contained in:
2026-07-12 13:52:22 +08:00
parent 63af3321dd
commit d271ac5b13
16 changed files with 329 additions and 5 deletions
+4 -1
View File
@@ -121,13 +121,16 @@ const server = http.createServer(async (req, res) => {
});
}
const started = triggerRelease(ref || 'manual');
const source = typeof payload.source === 'string' ? payload.source : '';
const trigger = source === 'admin' ? 'admin' : ref || 'manual';
const started = triggerRelease(trigger);
return json(res, 202, {
ok: true,
accepted: true,
started,
message: started ? 'deploy started' : 'deploy debounced (duplicate webhook)',
ref: ref || ALLOWED_REF,
source: trigger,
});
});