Skip to content

Commit

Permalink
Merge pull request #205 from deploymenttheory/feat_intune_settings_te…
Browse files Browse the repository at this point in the history
…mplates

Update terraform-docs workflow to disable automatic git push and hand…
  • Loading branch information
ShocOne authored Nov 18, 2024
2 parents fc970d8 + 1b34eb6 commit e228d52
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit e228d52

Please sign in to comment.