Skip to content

Commit 3cefcff

Browse files
committed
feat: make adding copyright headers part of the build workflow running in PRs
1 parent 600a54d commit 3cefcff

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Diff for: .github/workflows/build.yml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: projen/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@ export class CdktfAwsCdkProject extends cdk.JsiiProject {
215215
upgrade.steps.splice(1, 0, setSafeDirectory);
216216
pr.steps.splice(1, 0, setSafeDirectory);
217217

218+
this.buildWorkflow?.addPostBuildSteps(
219+
{
220+
name: "Setup Copywrite tool",
221+
uses: "hashicorp/setup-copywrite@3ace06ad72e6ec679ea8572457b17dbc3960b8ce", // v1.0.0
222+
with: { token: "${{ secrets.GITHUB_TOKEN }}" },
223+
},
224+
{ name: "Add headers using Copywrite tool", run: "copywrite headers" }
225+
);
226+
218227
new CdktfConfig(this, {
219228
terraformProvider,
220229
providerName,

0 commit comments

Comments
 (0)