diff --git a/src/__tests__/action.test.ts b/src/__tests__/action.test.ts index 94f96eb..94dd960 100644 --- a/src/__tests__/action.test.ts +++ b/src/__tests__/action.test.ts @@ -177,7 +177,7 @@ function mockDiffAll(token: string, from: string, error = false): () => void { return () => expect(jest.mocked(exec.exec)).toHaveBeenCalledWith( "optic", - ["diff-all", "--compare-from", from, "--check"], + ["diff-all", "--compare-from", from, "--check", "--upload"], expect.objectContaining({ env: expect.objectContaining({ OPTIC_TOKEN: "optic-token" }), }) diff --git a/src/action.ts b/src/action.ts index 375c62b..40ea02b 100644 --- a/src/action.ts +++ b/src/action.ts @@ -168,7 +168,7 @@ async function diffAll(token: string, from: string): Promise { return execCommand( "optic", - ["diff-all", "--compare-from", from, "--check"], + ["diff-all", "--compare-from", from, "--check", "--upload"], { env: { ...process.env,