Skip to content

Commit

Permalink
fix(ci): fix repository detection in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Oct 15, 2022
1 parent c085c7e commit 46ed1b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/ci-environment/services/github-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ function getBranch({ env }: Context) {
}

function getRepository({ env }: Context) {
if (!env.GITHUB_REPOSITORY_OWNER) return null;
const [, ...repositoryParts] = env.GITHUB_REPOSITORY_OWNER.split("/");
return repositoryParts.join("/");
if (!env.GITHUB_REPOSITORY) return null;
return env.GITHUB_REPOSITORY.split("/")[1];
}

const service: Service = {
Expand Down

0 comments on commit 46ed1b9

Please sign in to comment.