generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from equinix-labs/fix_github_actions_documenta…
…tion fix insufficient permission error and revert changes in #51
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ jobs: | |
id: actions-checkout | ||
with: | ||
ref: main | ||
set-safe-directory: "false" | ||
|
||
- name: Render terraform docs inside the main and the modules README.md files and push changes back to PR branch | ||
id: terraform-docs | ||
|
@@ -27,6 +26,12 @@ jobs: | |
indention: 3 | ||
git-push: "false" | ||
|
||
# terraform-docs/[email protected] modifies .git files with owner root:root, and the following steps fail with | ||
# insufficient permission for adding an object to repository database .git/objects | ||
# since the expected user is runner:docker. See https://github.com/terraform-docs/gh-actions/issues/90 | ||
- name: Fix .git owner | ||
run: sudo chown runner:docker -R .git | ||
|
||
- name: Create Pull Request | ||
if: steps.terraform-docs.outputs.num_changed != '0' | ||
uses: peter-evans/create-pull-request@v4 | ||
|