mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-23 20:05:33 +00:00
updating error handling
This commit is contained in:
parent
669961e207
commit
24ec60a7c8
2 changed files with 14 additions and 2 deletions
|
@ -197,7 +197,13 @@ class GitAuthHelper {
|
|||
if (this.temporaryHomePath?.length > 0) {
|
||||
core.debug(`Unsetting HOME override`)
|
||||
this.git.removeEnvironmentVariable('HOME')
|
||||
await io.rmRF(this.temporaryHomePath)
|
||||
await io
|
||||
.rmRF(this.temporaryHomePath)
|
||||
// eslint-disable-next-line github/no-then
|
||||
.catch(err => {
|
||||
// eslint-disable-next-line i18n-text/no-en
|
||||
core.warning(`Failed to remove temporary home directory: ${err}`)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue