diff --git a/.github/workflows/terraform-docs.yml b/.github/workflows/terraform-docs.yml index 1647f55..1a183e0 100644 --- a/.github/workflows/terraform-docs.yml +++ b/.github/workflows/terraform-docs.yml @@ -33,10 +33,7 @@ jobs: indention: 3 output-file: README.md output-method: inject - git-push: "true" - git-commit-message: "terraform-docs: automated action" - git-push-user-name: "github-actions[bot]" - git-push-user-email: "github-actions[bot]@users.noreply.github.com" + git-push: "false" - name: Render terraform docs for microsoft365_graph uses: terraform-docs/gh-actions@v1.3.0 @@ -45,10 +42,7 @@ jobs: find-dir: . output-file: README.md output-method: inject - git-push: "true" - git-commit-message: "terraform-docs: automated action" - git-push-user-name: "github-actions[bot]" - git-push-user-email: "github-actions[bot]@users.noreply.github.com" + git-push: "false" - name: Render terraform docs for microsoft365_graph_beta uses: terraform-docs/gh-actions@v1.3.0 @@ -58,7 +52,12 @@ jobs: recursive-path: "/*" output-file: README.md output-method: inject - git-push: "true" - git-commit-message: "terraform-docs: automated action" - git-push-user-name: "github-actions[bot]" - git-push-user-email: "github-actions[bot]@users.noreply.github.com" + git-push: "false" + + - name: Commit and push changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add . + git commit -m "terraform-docs: automated update" || echo "No changes to commit" + git push \ No newline at end of file