From e18b6f48b68ff5eef52393ec4769142ea8343d1a Mon Sep 17 00:00:00 2001 From: abidhasan-aws Date: Mon, 21 Sep 2026 18:13:00 +0000 Subject: [PATCH] chore: reduce dependency-upgrade schedule to weekly Changes the projen dependency-upgrade workflow (upgrade-main.yml) from a daily cron (0 0 * * *) to weekly (0 0 * * 1, Mondays 00:00 UTC) via depsUpgradeOptions.workflowOptions.schedule = WEEKLY. --- .github/workflows/upgrade-main.yml | 2 +- .projenrc.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index 400f7b3e..d529132d 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -4,7 +4,7 @@ name: upgrade-main on: workflow_dispatch: {} schedule: - - cron: 0 0 * * * + - cron: 0 0 * * 1 jobs: upgrade: name: Upgrade diff --git a/.projenrc.ts b/.projenrc.ts index fc2e11a8..6396915f 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -1,4 +1,5 @@ import { awscdk } from 'projen'; +import { UpgradeDependenciesSchedule } from 'projen/lib/javascript'; const project = new awscdk.AwsCdkConstructLibrary({ author: 'Parker Scanlon', authorAddress: 'https://aws.amazon.com/', @@ -13,6 +14,11 @@ const project = new awscdk.AwsCdkConstructLibrary({ allowedUsernames: ['cdklabs-automation'], secret: 'GITHUB_TOKEN', }, + depsUpgradeOptions: { + workflowOptions: { + schedule: UpgradeDependenciesSchedule.WEEKLY, // Mondays 00:00 UTC + }, + }, gitignore: ['/cdk.out'], description: 'This module allows you to copy docker image assets to a repository you control. This can be necessary if you want to build a Docker image in one CDK app and consume it in a different app or outside the CDK.', bundledDeps: ['@types/aws-lambda', 'aws-sdk'],