This commit is contained in:
JulianRooze 2025-03-27 22:56:23 +01:00
parent 88c356c3bc
commit 3d6255d50f
2 changed files with 2 additions and 87 deletions

View file

@ -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 {