Skip to content

Commit 5afe160

Browse files
improves cruft durability (#5)
* improves cruft durability * Updated method Co-authored-by: Benoit Perigaud <8754100+b-per@users.noreply.github.com> --------- Co-authored-by: Benoit Perigaud <8754100+b-per@users.noreply.github.com>
1 parent b160a5f commit 5afe160

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/github/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ resource "null_resource" "post_repo_creation" {
4646
#!/bin/bash
4747
set -e
4848
# Clone the template and push it to the new repo
49+
rm -rf cruft-template
4950
mkdir cruft-template
5051
cd cruft-template
5152
cruft create ${var.cruft_template_url} --extra-context '{"project_name": "${var.project_name}", "project_slug": "${var.project_slug}"}' --no-input
@@ -54,7 +55,7 @@ resource "null_resource" "post_repo_creation" {
5455
git init
5556
git config user.email "nomail@dbt.com"
5657
git config user.name "Created by Terraform"
57-
git add * .*
58+
git add -A
5859
git commit -m "Initial commit from Terraform and cruft"
5960
git branch -M main
6061
git remote add origin ${local.https_url_with_pat}

0 commit comments

Comments
 (0)