Export with dep repos
All checks were successful
Unit tests / Unit tests (latest) (push) Successful in -1m59s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m0s
Distribution check / Generated files check (push) Successful in -1m58s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
Unit tests / Unit tests (lts/*) (push) Successful in -2m0s
All checks were successful
Unit tests / Unit tests (latest) (push) Successful in -1m59s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m0s
Distribution check / Generated files check (push) Successful in -1m58s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s
Unit tests / Unit tests (lts/*) (push) Successful in -2m0s
This commit is contained in:
18
dist/index.js
vendored
18
dist/index.js
vendored
@@ -41396,6 +41396,7 @@ async function parse(previous, current) {
|
||||
build: false,
|
||||
move: [],
|
||||
delete: [],
|
||||
deps: getDepRepo(actions.addRepo),
|
||||
actions,
|
||||
};
|
||||
// can't delete if there's nothing to delete/no previous success
|
||||
@@ -41422,9 +41423,6 @@ function parseRepoContents(repoContents, repository) {
|
||||
};
|
||||
});
|
||||
}
|
||||
function getDropped(oldPackages, newPackages) {
|
||||
return oldPackages.filter(p => newPackages.filter(np => np.package === p.package).length === 0);
|
||||
}
|
||||
function isDelete(actions) {
|
||||
return !!(actions.removeRepo && actions.addRepo === null);
|
||||
}
|
||||
@@ -41434,6 +41432,19 @@ function isAdd(actions) {
|
||||
function isMove(actions) {
|
||||
return !!(actions.removeRepo && actions.addRepo);
|
||||
}
|
||||
function getDepRepo(destination) {
|
||||
const split = (destination || '').split('-');
|
||||
switch (split[split.length - 1]) {
|
||||
case 'testing':
|
||||
case 'gremlins':
|
||||
return 'testing';
|
||||
case 'staging':
|
||||
case 'goblins':
|
||||
return 'staging';
|
||||
default:
|
||||
return 'stable';
|
||||
}
|
||||
}
|
||||
async function tryRead(location) {
|
||||
try {
|
||||
const contents = isUrl(location) ? await (await distribution.get(location)).text() : await promises_namespaceObject.readFile(location, { encoding: 'utf-8' });
|
||||
@@ -41518,6 +41529,7 @@ async function doParse() {
|
||||
core.setOutput('move', diff.move.length > 0);
|
||||
core.setOutput('delete', diff.delete.length > 0);
|
||||
core.setOutput('destination', diff.actions.addRepo);
|
||||
core.setOutput('deps', diff.deps);
|
||||
}
|
||||
//# sourceMappingURL=router.js.map
|
||||
;// CONCATENATED MODULE: ./lib/src/index.js
|
||||
|
||||
Reference in New Issue
Block a user