Skip to content

Commit

Permalink
chore: fix tests in GHA runner
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Jan 31, 2025
1 parent bbfccd8 commit c871520
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions __tests__/commands/docs/__snapshots__/upload.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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":[]}
",
}
`;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/baseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default abstract class BaseCommand<T extends typeof OclifCommand> extends
protected async _run<U>(): Promise<U> {
// 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;
Expand Down

0 comments on commit c871520

Please sign in to comment.