Skip to content

Commit

Permalink
Add a postUpgradeTask to bump metadata for aws-native
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Nov 28, 2024
1 parent 7d8e9a0 commit 7f86864
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Used as a postUpgradeTask by Renovate. See ./renovate.json5.
.PHONY: renovate
renovate:
VERSION=$(shell cat package.json | jq -r '.devDependencies["@pulumi/aws-native"]' | sed 's/^\^/v/'); \
curl -L https://raw.githubusercontent.com/pulumi/pulumi-aws-native/refs/tags/$${VERSION}/provider/cmd/pulumi-resource-aws-native/metadata.json -o schemas/aws-native-metadata.json

15 changes: 15 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["github>pulumi/renovate-config//default.json5"],
packageRules: [
{
// Update metadata when aws-native is bumped.
matchDatasources: ["npm"],
matchPackageNames: ["@pulumi/aws-native"],
postUpgradeTasks: {
commands: ["make renovate"],
executionMode: "branch", // Only run once.
},
},
]
}

0 comments on commit 7f86864

Please sign in to comment.