renovatebot-github/src/index.ts
Jeroen de Bruijn 9c8a784d88
feat: add passing of Renovate environment variables (#534)
Inputs may now be provided using environment variables, as well as the existing inputs. None of the
inputs are required any more, so it is possible to use only environment variables. Nevertheless all
inputs must be provided in some way, either using the input or their corresponding environment
variables.

BREAKING CHANGE: The `configurationFile` input no longer has a default value. This means that a
value for it is now required using the `configurationFile` input or the `RENOVATE_CONFIG_FILE`
environment variable.

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-03-08 09:42:52 +01:00

17 lines
360 B
TypeScript

import * as core from '@actions/core';
import Input from './input';
import Renovate from './renovate';
async function run(): Promise<void> {
try {
const input = new Input();
const renovate = new Renovate(input);
await renovate.runDockerContainer();
} catch (error) {
console.error(error);
core.setFailed(error.message);
}
}
run();