Add workflow conclusion enum

This commit is contained in:
Luc Perkins 2024-05-22 13:43:59 -03:00
parent f6047128c4
commit cd7602a5a8
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835

View File

@ -34,6 +34,13 @@ const FACT_IN_ACT = "in_act";
const FACT_IN_NAMESPACE_SO = "in_namespace_so";
const FACT_NIX_INSTALLER_PLANNER = "nix_installer_planner";
type WorkflowConclusion =
| "success"
| "failure"
| "cancelled"
| "unavailable"
| "no-jobs";
class NixInstallerAction extends DetSysAction {
platform: string;
nixPackageUrl: string | null;
@ -926,7 +933,7 @@ class NixInstallerAction extends DetSysAction {
}
private async getWorkflowConclusion(): Promise<
undefined | "success" | "failure" | "cancelled" | "unavailable" | "no-jobs"
undefined | WorkflowConclusion
> {
if (this.githubToken == null) {
return undefined;