mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
.
This commit is contained in:
parent
88c356c3bc
commit
3d6255d50f
2 changed files with 2 additions and 87 deletions
|
|
@ -2,16 +2,7 @@ import * as core from '@actions/core'
|
|||
import {getExecOutput} from '@actions/exec'
|
||||
|
||||
export async function listFiles(): Promise<string[]> {
|
||||
core.startGroup('Listing all files tracked by git')
|
||||
let output = ''
|
||||
try {
|
||||
output = (await getExecOutput('git', ['ls-files', '-z'])).stdout
|
||||
} finally {
|
||||
fixStdOutNullTermination()
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
return output.split('\u0000').filter(s => s.length > 0)
|
||||
return []
|
||||
}
|
||||
|
||||
function fixStdOutNullTermination(): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue