Rename var
This commit is contained in:
parent
856d05558c
commit
335c663a08
@ -73,7 +73,7 @@ export const getRenamedFiles = async ({
|
||||
}
|
||||
|
||||
if (inputs.json) {
|
||||
return jsonOutput({value: renamedFiles, escape: inputs.escape_json})
|
||||
return jsonOutput({value: renamedFiles, escape: inputs.escapeJson})
|
||||
}
|
||||
|
||||
return renamedFiles.join(inputs.oldNewFilesSeparator)
|
||||
@ -146,7 +146,7 @@ export const getDiffFiles = async ({
|
||||
}
|
||||
|
||||
if (inputs.json) {
|
||||
return jsonOutput({value: files, escape: inputs.escape_json})
|
||||
return jsonOutput({value: files, escape: inputs.escapeJson})
|
||||
}
|
||||
|
||||
return files.join(inputs.separator)
|
||||
|
@ -24,7 +24,7 @@ export type Inputs = {
|
||||
dirNamesMaxDepth?: number
|
||||
dirNamesExcludeRoot: boolean
|
||||
json: boolean
|
||||
escape_json: boolean
|
||||
escapeJson: boolean
|
||||
fetchDepth?: number
|
||||
sinceLastRemoteCommit: boolean
|
||||
writeOutputFiles: boolean
|
||||
@ -95,7 +95,7 @@ export const getInputs = (): Inputs => {
|
||||
required: false
|
||||
})
|
||||
const json = core.getBooleanInput('json', {required: false})
|
||||
const escape_json = core.getBooleanInput('escape_json', {required: false})
|
||||
const escapeJson = core.getBooleanInput('escape_json', {required: false})
|
||||
const fetchDepth = core.getInput('fetch_depth', {required: false})
|
||||
const sinceLastRemoteCommit = core.getBooleanInput(
|
||||
'since_last_remote_commit',
|
||||
@ -132,7 +132,7 @@ export const getInputs = (): Inputs => {
|
||||
dirNames,
|
||||
dirNamesExcludeRoot,
|
||||
json,
|
||||
escape_json,
|
||||
escapeJson,
|
||||
sinceLastRemoteCommit,
|
||||
writeOutputFiles,
|
||||
outputDir,
|
||||
|
@ -19,7 +19,7 @@ import {
|
||||
|
||||
export async function run(): Promise<void> {
|
||||
const env = getEnv()
|
||||
core.debug(`Env: ${JSON.stringify(env, null, 2)}`)
|
||||
core.debug(`Env: ${JSON.stringify(process.env, null, 2)}`)
|
||||
const inputs = getInputs()
|
||||
core.debug(`Inputs: ${JSON.stringify(inputs, null, 2)}`)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user