Add logging
All checks were successful
Distribution check / Generated files check (push) Successful in -1m58s
NPM Audit Check / Check NPM audit (push) Successful in -2m9s
Unit tests / Unit tests (latest) (push) Successful in -1m59s
Unit tests / Unit tests (lts/*) (push) Successful in -1m59s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -1m58s

This commit is contained in:
2025-11-12 12:25:30 -05:00
parent 112afbe142
commit 8170ed0565
5 changed files with 10 additions and 4 deletions

3
dist/index.js vendored
View File

@@ -41486,6 +41486,7 @@ async function main() {
if (mode === 'move') {
for (const pkg of parsedData.move) {
const filename = getFilename(pkg);
console.log(`moving ${filename} from ${parsedData.actions.removeRepo} to ${parsedData.actions.addRepo} ...`);
const files = await distribution.get(`${github.context.serverUrl}/api/v1/packages/${github.context.repo.owner}/arch/${pkg.package}/${pkg.version}/files`, { headers }).json();
const match = files.filter(f => f.name === filename);
if (match.length !== 1) {
@@ -41503,6 +41504,7 @@ async function main() {
return;
}
else if (mode === 'delete') {
console.log(`deleting ${parsedData.delete.join(', ') || 'no packages'} ...`);
await deletePackages(parsedData.delete, headers);
return;
}
@@ -41525,6 +41527,7 @@ async function doParse() {
const previous = core.getInput('previous', { required: true });
const current = getCurrent();
const diff = await parse(previous, current);
console.log(diff);
core.setOutput('parsed-data', JSON.stringify(diff));
core.setOutput('build', diff.build);
core.setOutput('move', diff.move.length > 0);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long