feat!: use semantic release (#704)

This commit is contained in:
Michael Kriese 2023-03-13 15:21:58 +01:00 committed by GitHub
parent 8463758e93
commit 94faa7df1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 2317 additions and 389 deletions

View file

@ -27,11 +27,11 @@ class Input {
constructor() {
const envRegexInput = core.getInput('env-regex');
const envRegex = envRegexInput ? new RegExp(envRegexInput) : this.options.envRegex;
const envRegex = envRegexInput
? 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))
);
this.token = this.get(
@ -58,7 +58,12 @@ class Input {
}
useSlim(): boolean {
return core.getInput(`useSlim`) !== 'false';
return core.getInput('useSlim') !== 'false';
}
getVersion(): string | null {
const version = core.getInput('renovate-version');
return !!version && version !== '' ? version : null;
}
/**