Skip to content

Commit

Permalink
Adds the function, but it's not working yet
Browse files Browse the repository at this point in the history
  • Loading branch information
joergi committed Mar 19, 2024
1 parent 148c88d commit b1b864b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@ async function run(): Promise<void> {
const fileList: string[] = files
.split(',')
.map((item: string) => item.trim())
console.log("xxxx" + core.getInput('working_dir'))
console.log("yyyy" + core.getInput('working_directory_path'))
const workingDir: boolean = (core.getInput('working_dir') || 'false').toUpperCase() === 'TRUE'

const workingDirectory: string = core.getInput('working_directory_path')

console.log("workingDir" + workingDir)
console.log("workingDirectory" + workingDirectory)
const missingFiles: string[] = []

// Check in parallel
await Promise.all(
fileList.map(async (file: string) => {
const isPresent = await checkExistence(file)
const isPresent = await (workingDir ? checkExistence(workingDirectory + file) : checkExistence(file));
if (!isPresent) {
missingFiles.push(file)
}
Expand Down

0 comments on commit b1b864b

Please sign in to comment.