fix: replace use of any type (#1251)

This commit is contained in:
Peter Evans 2022-09-21 15:42:50 +09:00 committed by GitHub
parent 171dd555b9
commit 3f9dbd5a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 47 additions and 23 deletions

View file

@ -243,8 +243,8 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
}
}
}
} catch (error: any) {
core.setFailed(error.message)
} catch (error) {
core.setFailed(utils.getErrorMessage(error))
} finally {
// Remove auth and restore persisted auth config if it existed
core.startGroup('Restore persisted git credentials')