style: move input defaults together
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user