remove global handler

This commit is contained in:
Wathanyu Phromma
2020-05-29 20:53:16 +07:00
parent 78fadbd8b4
commit 8d1a2d0bd5
6 changed files with 2 additions and 19 deletions

View File

@@ -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')){

View File

@@ -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 => {