Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a postUpgradeTask to regenerate schema #1506

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ build:: schema provider build_nodejs build_python build_go build_dotnet build_ja
schema::
(cd provider/cmd/$(CODEGEN) && go run main.go schema ../$(PROVIDER) $(VERSION_GENERIC))

# Renovate can re-build our schema as a postUpgradeTask.
renovate: schema

provider:: bin/${PROVIDER}

.pulumi/bin/pulumi: PULUMI_VERSION := $(shell cd nodejs/eks && yarn list --pattern @pulumi/pulumi --json --no-progress | jq -r '.data.trees[].name' | cut -d'@' -f3)
Expand Down
18 changes: 18 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["github>pulumi/renovate-config//default.json5"],
packageRules: [
{
// Regenerate the schema if aws, k8s, or pu/pu are bumped.
matchPackageNames: [
"@pulumi/aws",
"@pulumi/kubernetes",
"github.com/pulumi/pulumi/pkg/v3",
],
postUpgradeTasks: {
commands: ["make renovate"],
executionMode: "branch", // Only run once.
},
},
],
}
Loading