From 70111ed694c8af386ca1db27b6bc7809ab900678 Mon Sep 17 00:00:00 2001 From: James Ives Date: Mon, 2 Sep 2024 11:26:06 -0400 Subject: [PATCH] feat: properly set default config outside of GH actions context --- src/lib.ts | 7 +++---- src/main.ts | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib.ts b/src/lib.ts index 956751032..faf9c3356 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -3,12 +3,11 @@ import {action, ActionInterface, Status} from './constants' import {generateExport, retrieveData} from './fetch' import {extractErrorMessage, hasRequiredParameters} from './util' -/** Initializes and runs the action. - * - * @param {ActionInterface} configuration - The configuration object. +/** + * Initializes and runs the action. */ export default async function run( - configuration: ActionInterface + configuration?: ActionInterface ): Promise { let status: Status = Status.RUNNING diff --git a/src/main.ts b/src/main.ts index 10f4069b2..029bc7e53 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,3 @@ -import {action} from './constants' import run from './lib' -run(action) +run()