Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrurodr committed Mar 7, 2022
1 parent 32b0c78 commit 5cae8a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5cae8a0

Please sign in to comment.