webadmin端增加版本号和部署功能
This commit is contained in:
@@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user