mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
chore(actions): clean logging
This commit is contained in:
parent
6cc309d00b
commit
7bc50de8ec
11
.github/workflows/close_themes_pr.yml
vendored
11
.github/workflows/close_themes_pr.yml
vendored
|
@ -18,7 +18,8 @@ jobs:
|
|||
const pr = context.payload;
|
||||
|
||||
console.log(`Repo: ${repo}`);
|
||||
console.log(`Pull Request: ${pr}`);
|
||||
console.log(`Owner: ${owner}`);
|
||||
console.log(`Pull Request: ${JSON.stringify(pr)}`);
|
||||
|
||||
const response = await github.rest.pulls.listFiles({
|
||||
owner, repo,
|
||||
|
@ -32,15 +33,17 @@ jobs:
|
|||
|
||||
let hasThemeAdditions = false;
|
||||
for (const file in response.data) {
|
||||
console.log(`File: ${file}`);
|
||||
if (file.status === 'added' && file.filename.includes('themes/')) {
|
||||
console.log(`File: ${file.filename} is a theme addition`);
|
||||
const name = file.filename
|
||||
console.log(`File: ${name}`);
|
||||
if (file.status === 'added' && name.includes('themes/')) {
|
||||
console.log(`File: ${name} is a theme addition`);
|
||||
hasThemeAdditions = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasThemeAdditions) {
|
||||
console.log('No theme additions found.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue