mirror of
https://github.com/peter-evans/dockerhub-description.git
synced 2024-11-22 03:59:34 +01:00
style: move input defaults together
This commit is contained in:
parent
63eba8b40c
commit
68960cdd4c
2 changed files with 6 additions and 6 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -130,9 +130,6 @@ function getInputs() {
|
|||
if (!inputs.repository && process.env['DOCKER_REPOSITORY']) {
|
||||
inputs.repository = process.env['DOCKER_REPOSITORY'];
|
||||
}
|
||||
if (!inputs.repository && process.env['GITHUB_REPOSITORY']) {
|
||||
inputs.repository = process.env['GITHUB_REPOSITORY'];
|
||||
}
|
||||
if (!inputs.readmeFilepath && process.env['README_FILEPATH']) {
|
||||
inputs.readmeFilepath = process.env['README_FILEPATH'];
|
||||
}
|
||||
|
@ -140,6 +137,9 @@ function getInputs() {
|
|||
if (!inputs.readmeFilepath) {
|
||||
inputs.readmeFilepath = README_FILEPATH_DEFAULT;
|
||||
}
|
||||
if (!inputs.repository && process.env['GITHUB_REPOSITORY']) {
|
||||
inputs.repository = process.env['GITHUB_REPOSITORY'];
|
||||
}
|
||||
return inputs;
|
||||
}
|
||||
exports.getInputs = getInputs;
|
||||
|
|
|
@ -39,9 +39,6 @@ export function getInputs(): Inputs {
|
|||
if (!inputs.repository && process.env['DOCKER_REPOSITORY']) {
|
||||
inputs.repository = process.env['DOCKER_REPOSITORY']
|
||||
}
|
||||
if (!inputs.repository && process.env['GITHUB_REPOSITORY']) {
|
||||
inputs.repository = process.env['GITHUB_REPOSITORY']
|
||||
}
|
||||
|
||||
if (!inputs.readmeFilepath && process.env['README_FILEPATH']) {
|
||||
inputs.readmeFilepath = process.env['README_FILEPATH']
|
||||
|
@ -51,6 +48,9 @@ export function getInputs(): Inputs {
|
|||
if (!inputs.readmeFilepath) {
|
||||
inputs.readmeFilepath = README_FILEPATH_DEFAULT
|
||||
}
|
||||
if (!inputs.repository && process.env['GITHUB_REPOSITORY']) {
|
||||
inputs.repository = process.env['GITHUB_REPOSITORY']
|
||||
}
|
||||
|
||||
return inputs
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue