import * as core from '@actions/core' ; import exec from './exec' ; export async function listFiles ( ) { core . startGroup ( 'Listing all files tracked by git' ) ; let output = '' ; try { output = ( await exec ( 'git' , [ 'ls-files' , '-z' ] ) ) . stdout ; } finally { fixStdOutNullTermination ( ) ; core . endGroup ( ) ; } return output . split ( '\u0000' ) . filter ( s => s . length > 0 ) ; } function fixStdOutNullTermination ( ) { core . info ( '' ) ; }