diff --git a/dist/index.js b/dist/index.js index 3f613e47..0779230a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6168,7 +6168,7 @@ async function main() { } main() .then(() => _actions_core__WEBPACK_IMPORTED_MODULE_0__.info('Cancel Complete.')) - .catch(e => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(e.message)); + .catch((e) => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(e.message)); })(); diff --git a/package.json b/package.json index 744fc657..1ef419d7 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,6 @@ "@vercel/ncc": "0.31.1", "husky": "7.0.2", "prettier": "2.4.0", - "typescript": "4.3.5" + "typescript": "4.4.3" } } diff --git a/src/index.ts b/src/index.ts index cfbb846e..dac9aaa5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,7 @@ async function main() { }); console.log(`Cancel run ${id} responded with status ${res.status}`); } - } catch (e) { + } catch (e: any) { const msg = e.message || e; console.log(`Error while canceling workflow_id ${workflow_id}: ${msg}`); } @@ -111,4 +111,4 @@ async function main() { main() .then(() => core.info('Cancel Complete.')) - .catch(e => core.setFailed(e.message)); + .catch((e: any) => core.setFailed(e.message)); diff --git a/yarn.lock b/yarn.lock index 15628b52..dd36b859 100644 --- a/yarn.lock +++ b/yarn.lock @@ -158,10 +158,10 @@ tunnel@0.0.6: resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== -typescript@4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@4.4.3: + version "4.4.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324" + integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA== universal-user-agent@^6.0.0: version "6.0.0"