mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 16:16:21 +00:00
Remove async from callAsyncFunction
This commit is contained in:
@@ -2,7 +2,7 @@ const AsyncFunction = Object.getPrototypeOf(async () => {}).constructor
|
||||
|
||||
type AsyncFunctionArguments = {[key: string]: any}
|
||||
|
||||
export async function callAsyncFunction(
|
||||
export function callAsyncFunction(
|
||||
args: AsyncFunctionArguments,
|
||||
source: string
|
||||
): Promise<any> {
|
||||
|
||||
@@ -23,8 +23,6 @@ async function main() {
|
||||
script
|
||||
)
|
||||
|
||||
console.log('test result', result)
|
||||
|
||||
let encoding = core.getInput('result-encoding')
|
||||
encoding = encoding ? encoding : 'json'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user