diff --git a/__tests__/fixtures/all_fields_readme.output b/__tests__/fixtures/all_fields_readme.output index 6326bb48..f62522b0 100644 --- a/__tests__/fixtures/all_fields_readme.output +++ b/__tests__/fixtures/all_fields_readme.output @@ -2,8 +2,6 @@ ## Description Default test - - @@ -16,9 +14,6 @@ Default test | inputC | A description C | `true` | C | | inputD | A description D | `false` | D | | inputE | A description E | `false` | false | - - - @@ -28,15 +23,10 @@ Default test | --- | --- | | outputA | A description A | | outputB | A description B | - - - ## Runs This action is a `node12` action. - - diff --git a/__tests__/fixtures/all_fields_readme.output.crlf b/__tests__/fixtures/all_fields_readme.output.crlf index f34ff4a6..bb31b166 100644 --- a/__tests__/fixtures/all_fields_readme.output.crlf +++ b/__tests__/fixtures/all_fields_readme.output.crlf @@ -2,8 +2,6 @@ ## Description Default test - - @@ -16,9 +14,6 @@ Default test | inputC | A description C | `true` | C | | inputD | A description D | `false` | D | | inputE | A description E | `false` | false | - - - @@ -28,15 +23,10 @@ Default test | --- | --- | | outputA | A description A | | outputB | A description B | - - - ## Runs This action is a `node12` action. - - diff --git a/__tests__/fixtures/all_fields_readme_filled.output b/__tests__/fixtures/all_fields_readme_filled.output index 6326bb48..f62522b0 100644 --- a/__tests__/fixtures/all_fields_readme_filled.output +++ b/__tests__/fixtures/all_fields_readme_filled.output @@ -2,8 +2,6 @@ ## Description Default test - - @@ -16,9 +14,6 @@ Default test | inputC | A description C | `true` | C | | inputD | A description D | `false` | D | | inputE | A description E | `false` | false | - - - @@ -28,15 +23,10 @@ Default test | --- | --- | | outputA | A description A | | outputB | A description B | - - - ## Runs This action is a `node12` action. - - diff --git a/src/action-docs.ts b/src/action-docs.ts index 4b8343b5..889140b8 100644 --- a/src/action-docs.ts +++ b/src/action-docs.ts @@ -142,7 +142,7 @@ async function updateReadme( from: to, to: `${getLineBreak( options.lineBreaks - )}${text}${getLineBreak( + )}${text.trim()}${getLineBreak( options.lineBreaks )}`, });