Skip to content

Fix - for M365AppsInstallationOptions to use the correct api endpoint and request constructors #143

Fix - for M365AppsInstallationOptions to use the correct api endpoint and request constructors

Fix - for M365AppsInstallationOptions to use the correct api endpoint and request constructors #143

Workflow file for this run

name: Generate terraform docs
on:
pull_request:
branches:
- main
paths-ignore:
- '.github/**'
permissions:
contents: write # Required to update documentation in the repo
pull-requests: write
jobs:
tf-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render terraform docs for microsoft365_provider
uses: terraform-docs/gh-actions@cca78c27ac9e2b6545debf2ecae9df930fd3461c # v1.2.2
with:
working-dir: examples/microsoft365_provider
indention: 3
output-file: README.md
output-method: inject
git-push: "true"
git-commit-message: "terraform-docs: automated action"
- name: Render terraform docs for microsoft365_graph
uses: terraform-docs/gh-actions@v1.2.2
with:
working-dir: examples/
recursive: true
recursive-path: microsoft365_graph/
output-file: README.md
output-method: inject
git-push: "true"
git-commit-message: "terraform-docs: automated action"
- name: Render terraform docs for microsoft365_graph_beta
uses: terraform-docs/gh-actions@v1.2.2
with:
working-dir: examples/
recursive: true
recursive-path: microsoft365_graph_beta/
output-file: README.md
output-method: inject
git-push: "true"
git-commit-message: "terraform-docs: automated action"
go-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Generate Go Docs
run: go generate ./...
- name: Check for changes in generated Go docs
id: go-gen-check
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
fi
- name: Commit changes in Go docs
if: steps.go-gen-check.outputs.changes == 'true'
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
commit_message: "go generate: automated update"
file_pattern: '**/*.go'
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