Skip to content

Commit

Permalink
Drop content except webhook_handler.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Beppe Catanese committed Nov 12, 2024
1 parent 41cb64a commit 6e2bb7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ services.findAll { it.name.endsWith('Webhooks') }.each { Service svc ->
tasks.named("generate${svc.name}", GenerateTask) { packageName.set(singular) }
tasks.named("deploy${svc.name}", Copy) {
def targetDir = layout.projectDirectory.dir("repo/src/${singular}")
delete targetDir // Drop content first
// Drop content first (except webhook_handler.go)
targetDir.asFile.listFiles().each { file ->
if (file.name != 'webhook_handler.go') {
file.delete()
}
}
into targetDir // Copy models
}
}
Expand Down

0 comments on commit 6e2bb7d

Please sign in to comment.