mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Add info log when fetching git tree
This commit is contained in:
parent
953bdcc20a
commit
073a4b9a03
3 changed files with 28 additions and 15 deletions
21
dist/index.js
generated
vendored
21
dist/index.js
generated
vendored
|
|
@ -1480,16 +1480,23 @@ async function downloadArtifact(octokit, artifactId, fileName, token) {
|
|||
}
|
||||
exports.downloadArtifact = downloadArtifact;
|
||||
async function listFiles(octokit, sha) {
|
||||
core.info('Fetching list of tracked files from GitHub');
|
||||
const commit = await octokit.git.getCommit({
|
||||
commit_sha: sha,
|
||||
...github.context.repo
|
||||
});
|
||||
const files = await listGitTree(octokit, commit.data.tree.sha, '');
|
||||
return files;
|
||||
core.startGroup('Fetching list of tracked files from GitHub');
|
||||
try {
|
||||
const commit = await octokit.git.getCommit({
|
||||
commit_sha: sha,
|
||||
...github.context.repo
|
||||
});
|
||||
const files = await listGitTree(octokit, commit.data.tree.sha, '');
|
||||
return files;
|
||||
}
|
||||
finally {
|
||||
core.endGroup();
|
||||
}
|
||||
}
|
||||
exports.listFiles = listFiles;
|
||||
async function listGitTree(octokit, sha, path) {
|
||||
const pathLog = path ? ` at ${path}` : '';
|
||||
core.info(`Fetching tree ${sha}${pathLog}`);
|
||||
let truncated = false;
|
||||
let tree = await octokit.git.getTree({
|
||||
recursive: 'true',
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue