Skip to content

Commit

Permalink
feat: properly set default config outside of GH actions context
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Sep 2, 2024
1 parent 5203b41 commit 70111ed
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/lib.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
let status: Status = Status.RUNNING

3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {action} from './constants'
import run from './lib'

run(action)
run()

0 comments on commit 70111ed

Please sign in to comment.