mirror of
https://code.forgejo.org/actions/checkout.git
synced 2024-11-24 21:13:35 +00:00
.
This commit is contained in:
parent
34070387ee
commit
c22ccee38a
2 changed files with 2 additions and 17 deletions
9
dist/index.js
vendored
9
dist/index.js
vendored
|
@ -7206,14 +7206,7 @@ class GitAuthHelper {
|
||||||
if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
||||||
core.debug(`Unsetting HOME override`);
|
core.debug(`Unsetting HOME override`);
|
||||||
this.git.removeEnvironmentVariable('HOME');
|
this.git.removeEnvironmentVariable('HOME');
|
||||||
core.info(`hi there: ${this.temporaryHomePath}`);
|
yield io.rmRF(this.temporaryHomePath);
|
||||||
yield 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 checkout directory: ${err}`);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,15 +197,7 @@ class GitAuthHelper {
|
||||||
if (this.temporaryHomePath?.length > 0) {
|
if (this.temporaryHomePath?.length > 0) {
|
||||||
core.debug(`Unsetting HOME override`)
|
core.debug(`Unsetting HOME override`)
|
||||||
this.git.removeEnvironmentVariable('HOME')
|
this.git.removeEnvironmentVariable('HOME')
|
||||||
|
await io.rmRF(this.temporaryHomePath)
|
||||||
core.info(`hi there: ${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 checkout directory: ${err}`)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue