Skip to content

Commit

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

Update terraform-docs workflow to enable automatic git commit and pus…
  • Loading branch information
ShocOne authored Nov 18, 2024
2 parents a2cb826 + 7fdd82b commit cbd3e7a
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,15 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
# Creates provider documentation for registry.terraform.io
- name: Render terraform docs for microsoft365_provider
uses: terraform-docs/gh-actions@v1.3.0
with:
working-dir: examples/microsoft365_provider
indention: 3
output-file: README.md
output-method: inject
git-push: "false"

- name: Render terraform docs for microsoft365_graph
uses: terraform-docs/gh-actions@v1.3.0
with:
working-dir: examples/
find-dir: .
indention: 3
output-file: README.md
output-method: inject
git-push: "false"

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: "terraform-docs: automated update"
file_pattern: '.'
commit_options: '--no-verify --signoff'
commit_user_name: "GitHub Actions Bot"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>"
status_options: '--untracked-files=no'
add_options: '-u'
push_options: '--force'
skip_dirty_check: false
skip_fetch: true
skip_checkout: true
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"

0 comments on commit cbd3e7a

Please sign in to comment.