mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 08:52:35 +00:00
refactor: use @tsconfig/node16 (#721)
This commit is contained in:
parent
5fcc920667
commit
1bf6b3ad0a
5 changed files with 11 additions and 11 deletions
|
|
@ -31,7 +31,9 @@ class Input {
|
|||
? new RegExp(envRegexInput)
|
||||
: this.options.envRegex;
|
||||
this._environmentVariables = new Map(
|
||||
Object.entries(process.env).filter(([key]) => envRegex.test(key))
|
||||
Object.entries(process.env)
|
||||
.filter(([key]) => envRegex.test(key))
|
||||
.filter((pair): pair is [string, string] => pair[1] !== undefined)
|
||||
);
|
||||
|
||||
this.token = this.get(
|
||||
|
|
|
|||
|
|
@ -22,12 +22,13 @@ class Renovate {
|
|||
.map((e) => `--env ${e.key}`)
|
||||
.concat([`--env ${this.input.token.key}=${this.input.token.value}`]);
|
||||
|
||||
if (this.input.configurationFile() !== null) {
|
||||
const baseName = path.basename(this.input.configurationFile().value);
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (configurationFile !== null) {
|
||||
const baseName = path.basename(configurationFile.value);
|
||||
const mountPath = path.join(this.configFileMountDir, baseName);
|
||||
dockerArguments.push(
|
||||
`--env ${this.input.configurationFile().key}=${mountPath}`,
|
||||
`--volume ${this.input.configurationFile().value}:${mountPath}`
|
||||
`--env ${configurationFile.key}=${mountPath}`,
|
||||
`--volume ${configurationFile.value}:${mountPath}`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue