0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/manager/terragrunt/artifacts.ts

18 lines
573 B
TypeScript

import { logger } from '../../../logger';
import { updateArtifacts as updateTerraformArtifacts } from '../terraform/lockfile/index';
import type { UpdateArtifact, UpdateArtifactsResult } from '../types';
export async function updateArtifacts(
artifact: UpdateArtifact,
): Promise<UpdateArtifactsResult[] | null> {
if (!artifact.config.isLockFileMaintenance) {
logger.debug(
`UpdateType ${
artifact.config.updateType as string
} is not supported for terragrunt`,
);
return null;
}
return await updateTerraformArtifacts(artifact);
}