Skip to content

Commit

Permalink
fix: Workflow run case - prefix branch with forkname
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jan 22, 2022
1 parent f3d528d commit 7721e8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ runs:
if (workflowRun.event === 'pull_request') {
pr = get(workflowRun, 'pull_requests[0].number');
}
if (get(payload, 'owner.login') !== get(workflowRun, 'head_repository.owner.login')) {
branch = get(workflowRun, 'head_repository.owner.login') + ':' + branch;
}
}
// If undefined, env-ci will infer the GitHub action values
Expand Down

0 comments on commit 7721e8d

Please sign in to comment.