feat: add passing of Renovate environment variables

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.

Closes #136.
This commit is contained in:
Jeroen de Bruijn 2021-03-06 21:18:58 +01:00
parent 846f705b78
commit 008f05800b
No known key found for this signature in database
GPG key ID: 94DD99A281A21364
8 changed files with 110 additions and 42 deletions

View file

@ -6,14 +6,16 @@ branding:
color: blue
inputs:
configurationFile:
description: 'Configuration file to configure Renovate'
description: |
Configuration file to configure Renovate. Either use this input or the
'RENOVATE_CONFIG_FILE' environment variable.
required: false
default: src/config.js
token:
description: |
GitHub personal access token that Renovate should use. This should be
configured using a Secret.
required: true
configured using a Secret. Either use this input or the 'RENOVATE_TOKEN'
environment variable.
required: false
runs:
using: node12
main: dist/index.js