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

Don't add 2 newlines if nothing in table #423

Merged
merged 5 commits into from
Mar 10, 2023

Conversation

andreas-aman
Copy link
Contributor

Only replace headers if there are documentation to add.

If you add a header ex. ## Outputs but the action or reusable workflow does not have any outputs defined 2 newlines will be added after the header for each run of auto-doc.

## Outputs

becomes

## Outputs


and after 3rd run

## Outputs




It's the same for Inputs and Secrets

internal/types/action.go Outdated Show resolved Hide resolved
@jackton1 jackton1 merged commit 571f879 into tj-actions:main Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants