From 098aa662bb6f79784084cd3582e92eb2ab7a36ab Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Tue, 30 Aug 2022 10:05:53 +0200 Subject: [PATCH] Fix documentation workflow Filed this issue with the upstream action being used https://github.com/terraform-docs/gh-actions/issues/90 --- .github/workflows/tf-docs.yaml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tf-docs.yaml b/.github/workflows/tf-docs.yaml index 0d07f0a..b305f23 100644 --- a/.github/workflows/tf-docs.yaml +++ b/.github/workflows/tf-docs.yaml @@ -30,11 +30,6 @@ jobs: - name: Check out code uses: actions/checkout@v3.0.2 - - name: Debug - run: | - ls -lha .git - ls -lha .git/objects - - name: Update module docs uses: terraform-docs/gh-actions@v1.0.0 with: @@ -43,10 +38,8 @@ jobs: output-method: inject git-push: "false" - - name: Debug - run: | - ls -lha .git - ls -lha .git/objects + - name: Fix .git owner + run: sudo chown runner:docker -R .git - name: Compute branch name id: pr-meta @@ -65,9 +58,3 @@ jobs: commit-message: "terraform-docs: Update ${{ matrix.module }} example documentation" body: Update ${{ matrix.module }} documentation, see [README.md](https://github.com/${{ github.repository }}/blob/${{ steps.pr-meta.outputs.branch-name }}/examples/${{ matrix.module }}/README.md) for the result. labels: documentation - - - name: Debug - if: ${{ always() }} - run: | - ls -lha .git - ls -lha .git/objects