Refactoring: Convert ActionName to enum

This commit is contained in:
Henry Mercer 2024-02-29 11:29:32 +00:00
parent e12a8cc5eb
commit c0917251d4
27 changed files with 123 additions and 111 deletions

View file

@ -17,6 +17,7 @@ import {
getActionsStatus,
createStatusReportBase,
sendStatusReport,
ActionName,
} from "./status-report";
import {
checkActionVersion,
@ -45,7 +46,7 @@ async function sendCompletedStatusReport(
const status = getActionsStatus(cause, failingLanguage);
const statusReportBase = await createStatusReportBase(
"autobuild",
ActionName.Autobuild,
status,
startedAt,
config,
@ -71,7 +72,7 @@ async function run() {
try {
await sendStatusReport(
await createStatusReportBase(
"autobuild",
ActionName.Autobuild,
"starting",
startedAt,
undefined,