Add artifact input to action.yml + improve logging

This commit is contained in:
Michal Dorner 2021-02-15 15:54:15 +01:00
parent 3510d9ac27
commit 075144b122
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
5 changed files with 30 additions and 3 deletions

View file

@ -68,7 +68,9 @@ export async function listFiles(octokit: InstanceType<typeof GitHub>, sha: strin
commit_sha: sha,
...github.context.repo
})
return await listGitTree(octokit, commit.data.tree.sha, '')
const files = await listGitTree(octokit, commit.data.tree.sha, '')
core.info(`Found ${files.length} files tracked by GitHub in commit ${sha}`)
return files
}
async function listGitTree(octokit: InstanceType<typeof GitHub>, sha: string, path: string): Promise<string[]> {