Include completed_at when action is aborted

This commit is contained in:
Robert Brignull 2020-06-25 14:10:28 +01:00
parent 6846c702da
commit 50a2815790
3 changed files with 3 additions and 3 deletions

2
lib/util.js generated
View file

@ -252,7 +252,7 @@ async function createStatusReport(actionName, status, cause, exception) {
if (exception) {
statusReport.exception = exception;
}
if (status === 'success' || status === 'failure') {
if (status === 'success' || status === 'failure' || status === 'aborted') {
statusReport.completed_at = new Date().toISOString();
}
let matrix = core.getInput('matrix');

File diff suppressed because one or more lines are too long

View file

@ -283,7 +283,7 @@ async function createStatusReport(
if (exception) {
statusReport.exception = exception;
}
if (status === 'success' || status === 'failure') {
if (status === 'success' || status === 'failure' || status === 'aborted') {
statusReport.completed_at = new Date().toISOString();
}
let matrix: string | undefined = core.getInput('matrix');