renovate/lib/modules/manager/git-submodules/artifacts.ts
Rhys Arkins dca3418bbd refactor: lib/modules ()
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00

15 lines
466 B
TypeScript

import { logger } from '../../../logger';
import type { UpdateArtifact, UpdateArtifactsResult } from '../types';
export default function updateArtifacts({
updatedDeps,
}: UpdateArtifact): UpdateArtifactsResult[] | null {
const res: UpdateArtifactsResult[] = [];
updatedDeps.forEach((dep) => {
logger.info('Updating submodule ' + dep.depName);
res.push({
file: { type: 'addition', path: dep.depName, contents: '' },
});
});
return res;
}