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