new tier output
All checks were successful
Unit tests / Unit tests (lts/*) (push) Successful in -1m59s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -1m59s
NPM Audit Check / Check NPM audit (push) Successful in -2m1s
Distribution check / Generated files check (push) Successful in -1m57s
Unit tests / Unit tests (latest) (push) Successful in -1m59s

This commit is contained in:
2025-11-12 14:52:04 -05:00
parent 8170ed0565
commit ccb85e16fa
6 changed files with 52 additions and 3 deletions

17
dist/index.js vendored
View File

@@ -41397,6 +41397,7 @@ async function parse(previous, current) {
move: [],
delete: [],
deps: getDepRepo(actions.addRepo),
tier: getTier(actions.addRepo || actions.removeRepo),
actions,
};
// can't delete if there's nothing to delete/no previous success
@@ -41445,6 +41446,21 @@ function getDepRepo(destination) {
return 'stable';
}
}
function getTier(destination) {
const split = (destination || '').split('-');
switch (split[0]) {
case 'extra':
case 'world':
return '1';
case 'galaxy':
return '2';
case 'multilib':
case 'lib32':
return '3';
default:
return '0';
}
}
async function tryRead(location) {
try {
const contents = isUrl(location) ? await (await distribution.get(location)).text() : await promises_namespaceObject.readFile(location, { encoding: 'utf-8' });
@@ -41534,6 +41550,7 @@ async function doParse() {
core.setOutput('delete', diff.delete.length > 0);
core.setOutput('destination', diff.actions.addRepo);
core.setOutput('deps', diff.deps);
core.setOutput('tier', diff.tier);
}
//# sourceMappingURL=router.js.map
;// CONCATENATED MODULE: ./lib/src/index.js