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
Generated
+1 -1
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');
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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');