diff --git a/dist/index.js b/dist/index.js index 76379ae..d560826 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24706,7 +24706,7 @@ exports["default"] = _default; /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { const core = __nccwpck_require__(2186) -const { http_client } = __nccwpck_require__(6255) +const HttpClient = (__nccwpck_require__(6255).HttpClient) /** * The main function for the action. @@ -24731,7 +24731,7 @@ async function run() { content: bot_message } - const httpClient = new http_client.HttpClient('sphinx-bot', [], { + const httpClient = new HttpClient('sphinx-bot', [], { allowRetries: true, maxRetries: 3 }) diff --git a/src/main.js b/src/main.js index 06521a0..da966ee 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ const core = require('@actions/core') -const { http_client } = require('@actions/http-client') +const HttpClient = require('@actions/http-client').HttpClient /** * The main function for the action. @@ -24,7 +24,7 @@ async function run() { content: bot_message } - const httpClient = new http_client.HttpClient('sphinx-bot', [], { + const httpClient = new HttpClient('sphinx-bot', [], { allowRetries: true, maxRetries: 3 })