Skip to content

Commit

Permalink
chore: upgrade dependencies for providers weekly instead of nightly (#…
Browse files Browse the repository at this point in the history
…328)

This can help cut down on the GitHub notification spam as well as the
excessive Mergify usage. Most of the time, Projen is the only thing that
gets updated anyway, and we really don't need those updates nightly.

The downside is that this also updates CDKTF patch versions, but if we
ever critically need to update all providers with a patch, I suppose we
could just trigger it manually from cdktf-repository-manager.
  • Loading branch information
xiehan authored Oct 10, 2023
1 parent 73de646 commit cfe6e5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import assert = require("assert");
import { pascalCase } from "change-case";
import { TextFile, cdk, github, JsonPatch } from "projen";
import { JobStep } from "projen/lib/github/workflows-model";
import { UpgradeDependenciesSchedule } from "projen/lib/javascript";
import { AlertOpenPrs } from "./alert-open-prs";
import { AutoCloseCommunityIssues } from "./auto-close-community-issues";
import { CdktfConfig } from "./cdktf-config";
Expand Down Expand Up @@ -212,6 +213,7 @@ export class CdktfProviderProject extends cdk.JsiiProject {
depsUpgradeOptions: {
workflowOptions: {
labels: ["automerge", "dependencies"],
schedule: UpgradeDependenciesSchedule.WEEKLY,
},
},
python: packageInfo.python,
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfe6e5e

Please sign in to comment.