terraform-docs / gh-actions

A Github action for generating Terraform module documentation using terraform-docs and gomplate
Apache License 2.0
152 stars 63 forks source link

Support documentation files outside of `working-dir` path #108

Open BostjanBozic opened 1 year ago

BostjanBozic commented 1 year ago

Description of your changes

This PR includes changes to logic of staging files using git add. Currently logic does not support adding files changes if those files are outside of working-dir. Logic behind is changed to list all files that have been modified and then stage only files that are defied within output-file parameter of this GitHub action.

It also includes update to README.md and fixes to docker-entrypoint.sh script to pass Shellcheck scans.

https://github.com/terraform-docs/gh-actions/issues/93

I have:

How has this code been tested

Tests have been performed locally to make sure all strings are parsed correctly. Also all GitHub Actions workflows are passing.

sappusaketh commented 4 months ago

@khos2ow sorry for direct tag can you please release this feature its blocking us from using this action