feat: add support for returning posix path separator on windows (#2056)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack
2024-04-18 15:03:38 -06:00
committed by GitHub
parent 9f8300f8b4
commit 0874344d6e
13 changed files with 11446 additions and 26 deletions

View File

@@ -56,6 +56,7 @@ export type Inputs = {
useRestApi: boolean
excludeSubmodules: boolean
fetchMissingHistoryMaxRetries?: number
usePosixPathSeparator: boolean
}
export const getInputs = (): Inputs => {
@@ -251,6 +252,13 @@ export const getInputs = (): Inputs => {
{required: false}
)
const usePosixPathSeparator = core.getBooleanInput(
'use_posix_path_separator',
{
required: false
}
)
const inputs: Inputs = {
files,
filesSeparator,
@@ -291,6 +299,7 @@ export const getInputs = (): Inputs => {
fetchAdditionalSubmoduleHistory,
dirNamesDeletedFilesIncludeOnlyDeletedDirs,
excludeSubmodules,
usePosixPathSeparator,
// End Not Supported via REST API
dirNames,
dirNamesExcludeCurrentDir,