Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

num_changed output is not set when pushing #64

Closed
josh-barker opened this issue Sep 22, 2021 · 0 comments · Fixed by #65
Closed

num_changed output is not set when pushing #64

josh-barker opened this issue Sep 22, 2021 · 0 comments · Fixed by #65
Labels
bug Something isn't working

Comments

@josh-barker
Copy link
Contributor

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/gh-actions@v0.10.0
        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/gh-actions@v0.10.0

@josh-barker josh-barker added the bug Something isn't working label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant