renovate/lib/modules/manager/git-submodules/artifacts.ts
Sergei Zharinov e4dbd4ad49
fix(ci): Restrict template expressions (#16834)
* fix(ci): Restrict template expressions

* Fix

* Fix

* Fix
2022-07-30 16:28:31 +02:00

17 lines
575 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) => {
// TODO: types (#7154)
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
logger.info(`Updating submodule ${dep.depName}`);
res.push({
file: { type: 'addition', path: dep.depName!, contents: '' },
});
});
return res;
}