-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- "templates/**/*" | ||
|
||
jobs: | ||
tfplugindocs: | ||
tfplugindocs-generate: | ||
# Always run if pull_request was triggered because of paths, but also run if someone commented /docs on a PR | ||
if: github.event_name == 'pull_request' || (github.event.issue.pull_request && contains(github.event.comment.body, '/docs')) | ||
runs-on: ubuntu-latest | ||
|
@@ -20,11 +20,12 @@ jobs: | |
ref: ${{ github.event.pull_request.head.ref }} | ||
- run: | | ||
export PATH=$PATH:/home/runner/go/bin | ||
make docs | ||
make docs-prepare | ||
tfplugindocs generate | ||
- name: Commit changes | ||
uses: EndBug/[email protected] | ||
with: | ||
pull: "--ff" | ||
message: "Update Provider Docs" | ||
message: "Update Terraform Provider Docs" | ||
add: "docs/**/*.md" | ||
default_author: github_actions |