Skip to content

num_changed output is not set when pushing #64

@josh-barker

Description

@josh-barker

Describe the bug

When git-push is set to true, the output num_changed has no value.

See https://github.com/terraform-docs/gh-actions/blob/main/src/docker-entrypoint.sh#L191

How can we reproduce it?

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Update documentation in README.md
        id: doc_update
        if: github.ref != 'refs/heads/main'
        uses: terraform-docs/[email protected]
        with:
          working-dir: .
          output-file: README.md
          output-method: inject
          git-commit-message: "docs: docs automatically updated by terraform-docs"
          git-push: "true"

      - name: Docs updated
        run: |
          echo ${{ toJSON(steps) }}
          exit 1

Docs Updated shows:

{
    "7d40844ea24e4dbe999f72fb0670e5d0": {
      "outputs": {},
      "outcome": "success",
      "conclusion": "success"
    },
    "doc_update": {
      "outputs": {},
      "outcome": "success",
      "conclusion": "success"
    }
  }

Environment information

terraform-docs/[email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions