mirror of
https://git.mirrors.martin98.com/https://github.com/cyberman54/curl
synced 2026-04-03 17:33:18 +08:00
remove global handler
This commit is contained in:
@@ -5,14 +5,6 @@ import * as core from '@actions/core'
|
||||
import * as fs from 'fs'
|
||||
import { sendRequestWithRetry } from './util'
|
||||
|
||||
function sleep(ms: number) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
process.on('uncaughtException', function (err) {
|
||||
core.debug("Hahahaha")
|
||||
core.setFailed("eiei")
|
||||
});
|
||||
|
||||
try {
|
||||
if(core.getInput('custom-config')){
|
||||
|
||||
@@ -25,7 +25,6 @@ export const sendRequestWithRetry = (config: AxiosRequestConfig) => {
|
||||
const retryArr: string[] = core.getInput('retry').split('/')
|
||||
const numberOfRetry: number = Number(retryArr[0])
|
||||
const backoff: number = Number(retryArr[1])
|
||||
core.info(`retry: ${countRetry}`)
|
||||
do {
|
||||
axios(config)
|
||||
.then(res => {
|
||||
|
||||
Reference in New Issue
Block a user