Bump typescript, fix build errors around catch blocks.

This commit is contained in:
Nick Cipollo
2021-10-03 17:21:27 -04:00
parent 4531373c80
commit 821cbcc349
6 changed files with 8 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ export class Action {
let getResponse: ReleaseByTagResponse
try {
getResponse = await this.releases.getByTag(this.inputs.tag)
} catch (error) {
} catch (error: any) {
return await this.checkForMissingReleaseError(error)
}

View File

@@ -41,7 +41,7 @@ export class GithubArtifactUploader implements ArtifactUploader {
artifact.readFile(),
artifact.name,
releaseId)
} catch (error) {
} catch (error: any) {
if (error.status >= 500 && retry > 0) {
core.warning(`Failed to upload artifact ${artifact.name}. ${error.message}. Retrying...`)
await this.uploadArtifact(artifact, releaseId, uploadUrl, retry - 1)