diff --git a/__tests__/commands/docs/__snapshots__/upload.test.ts.snap b/__tests__/commands/docs/__snapshots__/upload.test.ts.snap index 61f2d65a..c5a9b9a5 100644 --- a/__tests__/commands/docs/__snapshots__/upload.test.ts.snap +++ b/__tests__/commands/docs/__snapshots__/upload.test.ts.snap @@ -203,8 +203,6 @@ exports[`rdme docs upload > given that the file path is a single file > and the ", "stdout": "🌱 Successfully created 1 page(s) in ReadMe: - new-doc (__tests__/__fixtures__/docs/new-docs/new-doc.md) - -::set-output name=rdme::{"created":[{"filePath":"__tests__/__fixtures__/docs/new-docs/new-doc.md","result":"created","response":{},"slug":"new-doc"}],"updated":[],"skipped":[],"failed":[]} ", } `; diff --git a/src/lib/baseCommand.ts b/src/lib/baseCommand.ts index 755e6592..13fbc857 100644 --- a/src/lib/baseCommand.ts +++ b/src/lib/baseCommand.ts @@ -89,7 +89,7 @@ export default abstract class BaseCommand extends protected async _run(): Promise { // eslint-disable-next-line no-underscore-dangle const result: U = await super._run(); - if (isGHA() && result) { + if (isGHA() && !isTest() && result) { core.setOutput('rdme', result); } return result;