Generate documentation from actions.yml#1239
Conversation
|
Version 1.1.0 of github-actions-docs drops the dependency on tslib. Using this to generate documentation instead of 1.0.0 (which is in this PR) no longer cause changes |
Right now the documentation of valid inputs (and outputs) seems to be manually maintained inside the `README.md` with a reference to the `actions.yml` file. Since this can be rather tedious to maintain this commit now uses [github-actions-docs][1] to automatically generate documentation. [1]: https://www.npmjs.com/package/github-action-docs
dcc9184 to
c6d37f6
Compare
|
Hi @stschulte, thank you for your contribution! While we are currently maintaining the README inputs/outputs section manually and are not planning to adopt automated tooling at this time, we’ll continue to monitor this area for potential improvements. Please don’t hesitate to reach out if you have any questions or need further assistance, and we welcome any ideas or suggestions for future enhancements. |
|
@gowridurgad fair enough, I also understand an action as widespread as this wants to be particulary careful into introducing additional dependencies (even if this is only a build time dependency). Feel free to close the PR then. |
Description:
Right now inputs and outputs of an action are documented in
actions.ymlbut this is not the first place a userlooks at. To have valid documentation inside
README.mda section inside the README seems to be manuallymaintained and kept in sync with the
actions.ymlfile.Since I was facing a similar issue I assume you are facing here, I developed github-actions-docs and I am wondering wether this would be helpful for you as well.
This PR now introduces github-actions-docs to automatically generate documentation of inputs and outputs.
It can be used to update documentation when running
NOTE: This commit seems to introduce change to the
dist/directory after runningnpm run pre-checkin. I am not exactly sure why this is, I assume this is partially due to a bump intslibbut I also see CRLF->LF changes which also happen for me on a clear git checkout. Let me know if you want to dig deeper into this.Related issue:
Add link to the related issue.
Check list: