@webqit/webflo 0.11.47 → 0.11.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -187,10 +187,6 @@ export async function webhook(httpEvent, router, next) {
|
|
|
187
187
|
var exitCode = await router.route('deploy', httpEvent, payload, _payload => {
|
|
188
188
|
return deploy.call(cx, deployParams);
|
|
189
189
|
});
|
|
190
|
-
if (cx.logger) {
|
|
191
|
-
cx.logger.log('');
|
|
192
|
-
cx.logger.log('---------------------------');
|
|
193
|
-
}
|
|
194
190
|
if (deployParams.ondeploy_autoexit) {
|
|
195
191
|
if (cx.logger) {
|
|
196
192
|
cx.logger.log('');
|
|
@@ -203,8 +199,12 @@ export async function webhook(httpEvent, router, next) {
|
|
|
203
199
|
}, _isNumeric(deployParams.ondeploy_autoexit) ? parseInt(deployParams.ondeploy_autoexit) : 5);
|
|
204
200
|
}
|
|
205
201
|
resolve(
|
|
206
|
-
new httpEvent.Response(
|
|
202
|
+
new httpEvent.Response(`Deployment ${ exitCode === 0 ? 'success' : 'error: ' + exitCode }!`, { status: exitCode === 0 ? 200 : 500 })
|
|
207
203
|
);
|
|
204
|
+
if (cx.logger) {
|
|
205
|
+
cx.logger.log('');
|
|
206
|
+
cx.logger.log('---------------------------');
|
|
207
|
+
}
|
|
208
208
|
});
|
|
209
209
|
webhookEventHandler.receive({
|
|
210
210
|
id: httpEvent.request.headers.get('x-github-delivery'),
|