Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9efab19

Browse files
committed
Clone the right branch
1 parent cb15aca commit 9efab19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/events.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ const LoadProjectStep: NpmStep = {
6464
run: async (ctx, params) => {
6565
const repo = eventRepo(ctx.data);
6666
const commit = eventCommit(ctx.data);
67+
const branch = eventBranch(ctx.data);
6768
const project: project.Project = await ctx.project.clone(
6869
repository.gitHub({
6970
owner: repo.owner,
7071
repo: repo.name,
7172
sha: commit.sha,
73+
branch,
7274
credential: await ctx.credential.resolve(
7375
secret.gitHubAppTokenFromRepository(ctx.data.commit),
7476
),

0 commit comments

Comments
 (0)