Bump typescript, fix build errors around catch blocks.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user