diff --git a/lib/main.js b/lib/main.js index af41c2cd..f1aeaed3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -34,7 +34,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getPayload = void 0; const core_1 = require("@actions/core"); const github = __importStar(require("@actions/github")); -const node_fetch_1 = __importDefault(require("node-fetch")); const format_1 = require("./format"); const input_1 = require("./input"); const utils_1 = require("./utils"); @@ -78,7 +77,7 @@ function wrapWebhook(webhook, payload) { if (proxy) { options = Object.assign(Object.assign({}, options), { agent: https_proxy_agent_1.default(proxy) }); } - yield node_fetch_1.default(webhook, options); + yield fetch(webhook, options); } catch (e) { if (e.response) {