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'],