From 2962e73b5069d97ef3a4ee09c018c3c56daae6ac Mon Sep 17 00:00:00 2001 From: Tristan Date: Thu, 26 Sep 2024 14:57:37 -0400 Subject: [PATCH] terraform-push: chown git repo to correct owner --- .github/workflows/terraform-on-branch-push.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/terraform-on-branch-push.yml b/.github/workflows/terraform-on-branch-push.yml index 9918ea7..2e1911a 100644 --- a/.github/workflows/terraform-on-branch-push.yml +++ b/.github/workflows/terraform-on-branch-push.yml @@ -22,6 +22,7 @@ jobs: - name: Check for unstaged changes id: git-check run: | + sudo chown -R runner:docker .git find . -type f \( -name '*.md' -o -name '*.tf' -o -name '*.tfvars' \) -exec git add {} + git diff --staged --exit-code || echo "changes=true" >> $GITHUB_OUTPUT - name: Commit and Push changes