mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-14 18:16:52 +00:00
build(deps-dev): Bump typescript from 4.3.5 to 4.4.2 (#401)
* build(deps-dev): Bump typescript from 4.3.5 to 4.4.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * ♻️ guard error object https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#use-unknown-catch-variables Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: marocchino <marocchino@users.noreply.github.com>
This commit is contained in:
parent
5ec4a629b2
commit
136dcf90b9
8 changed files with 37 additions and 25 deletions
|
|
@ -28,7 +28,9 @@ function buildBody(): string {
|
|||
try {
|
||||
return readFileSync(path, "utf-8")
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
if (error instanceof Error) {
|
||||
core.setFailed(error.message)
|
||||
}
|
||||
return ""
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,9 @@ async function run(): Promise<undefined> {
|
|||
|
||||
await updateComment(octokit, repo, previous.id, body, header, previousBody)
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
if (error instanceof Error) {
|
||||
core.setFailed(error.message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue