Skip to content

Commit

Permalink
chore: remove irrelevant workflows from deprecated providers
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Dec 13, 2023
1 parent 3bff473 commit c2ba14b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 302 deletions.
35 changes: 19 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,29 +351,32 @@ export class CdktfProviderProject extends cdk.JsiiProject {
deprecationDate,
isDeprecated: !!isDeprecated,
});
const upgradeScript = new CheckForUpgradesScriptFile(this, {
providerVersion,
fqproviderName,
});
new ProviderUpgrade(this, {
checkForUpgradesScriptPath: upgradeScript.path,
workflowRunsOn,
nodeHeapSize: maxOldSpaceSize,
});
new CustomizedLicense(this, options.creationYear);
new GithubIssues(this, { providerName });
new AutoApprove(this);
new AutoCloseCommunityIssues(this, { providerName });
new Automerge(this);
new LockIssues(this);
new AlertOpenPrs(this, {
slackWebhookUrl: "${{ secrets.ALERT_PRS_SLACK_WEBHOOK_URL }}",
repository,
});
new ForceRelease(this, {
workflowRunsOn,
repositoryUrl,

const upgradeScript = new CheckForUpgradesScriptFile(this, {
providerVersion,
fqproviderName,
});
if (!isDeprecated) {
new ProviderUpgrade(this, {
checkForUpgradesScriptPath: upgradeScript.path,
workflowRunsOn,
nodeHeapSize: maxOldSpaceSize,
});
new AlertOpenPrs(this, {
slackWebhookUrl: "${{ secrets.ALERT_PRS_SLACK_WEBHOOK_URL }}",
repository,
});
new ForceRelease(this, {
workflowRunsOn,
repositoryUrl,
});
}

new TextFile(this, ".github/CODEOWNERS", {
lines: [
Expand Down
Loading

0 comments on commit c2ba14b

Please sign in to comment.