updated githubPullRequest

Signed-off-by: Tavi Nolan <Tavi.Nolan@fmr.com>
This commit is contained in:
Tavi Nolan
2024-04-04 16:21:03 +01:00
parent cbbde942d7
commit 38b1a35a83
2 changed files with 3 additions and 6 deletions
@@ -229,7 +229,7 @@ describe('createPublishGithubPullRequestAction', () => {
expect(ctx.output).toHaveBeenCalledWith('pullRequestNumber', 123);
});
it('handles dry run correctly', async () => {
it('sets correct outputs during dry run', async () => {
ctx.isDryRun = true;
await instance.handler(ctx);
@@ -322,14 +322,11 @@ export const createPublishGithubPullRequestAction = (
);
if (ctx.isDryRun) {
ctx.logger.info(
`Dry run arguments: ${{
...ctx.input,
}}`,
);
ctx.logger.info(`Performing dry run of creating pull request`);
ctx.output('targetBranchName', branchName);
ctx.output('remoteUrl', repoUrl);
ctx.output('pullRequestNumber', 43);
ctx.logger.info(`Dry run complete`);
return;
}