renovate/lib/manager/git-submodules/artifacts.ts
Frédéric Marchand 4a8979e88c
fix(git-submodule): loop all updated submodules (#8185)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2021-01-04 20:51:59 +00:00

18 lines
448 B
TypeScript

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