mirror of
https://github.com/actions/github-script.git
synced 2026-04-07 14:49:25 +00:00
Update dependencies and use Node 20
This commit is contained in:
parent
1f16022c75
commit
84ab08fe8b
33 changed files with 32182 additions and 10173 deletions
|
|
@ -4,7 +4,6 @@ import {Context} from '@actions/github/lib/context'
|
|||
import {GitHub} from '@actions/github/lib/utils'
|
||||
import * as glob from '@actions/glob'
|
||||
import * as io from '@actions/io'
|
||||
import fetch from 'node-fetch'
|
||||
|
||||
const AsyncFunction = Object.getPrototypeOf(async () => null).constructor
|
||||
|
||||
|
|
@ -15,7 +14,6 @@ type AsyncFunctionArguments = {
|
|||
exec: typeof exec
|
||||
glob: typeof glob
|
||||
io: typeof io
|
||||
fetch: typeof fetch
|
||||
require: NodeRequire
|
||||
__original_require__: NodeRequire
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import * as io from '@actions/io'
|
|||
import {requestLog} from '@octokit/plugin-request-log'
|
||||
import {retry} from '@octokit/plugin-retry'
|
||||
import {RequestRequestOptions} from '@octokit/types'
|
||||
import fetch from 'node-fetch'
|
||||
import {callAsyncFunction} from './async-function'
|
||||
import {RetryOptions, getRetryOptions, parseNumberArray} from './retry-options'
|
||||
import {wrapRequire} from './wrap-require'
|
||||
|
|
@ -59,8 +58,7 @@ async function main(): Promise<void> {
|
|||
core,
|
||||
exec,
|
||||
glob,
|
||||
io,
|
||||
fetch
|
||||
io
|
||||
},
|
||||
script
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue