Commit cb09ce3
chore: fixing CI for PRs from forks (#237)
## Summary
Cherry-picked from the second commit of #182 (`4439298`, by @fselmo).
Adds a `git-repo` input to the composite action so CI workflows
triggered by PRs from forks clone the fork's HEAD instead of always
cloning `ethpandaops/benchmarkoor`. The workflow wires
`github.event.pull_request.head.repo.clone_url` into that input and uses
`head.repo.full_name` in the `run-config-urls` so the runtime config
files are also fetched from the fork.
## Test plan
- [ ] Open a PR from a fork against this branch and confirm the CI
action clones the fork (the workflow log should show `Cloning
https://github.com/<fork-owner>/benchmarkoor.git at ref <sha>`).
- [ ] Verify the `run-config-urls` resolve to
`raw.githubusercontent.com/<fork-owner>/benchmarkoor/<sha>/...` rather
than the canonical repo path.
- [ ] PRs from branches inside `ethpandaops/benchmarkoor` should
continue to clone the canonical repo unchanged.
Co-authored-by: Felipe Selmo <fselmo2@gmail.com>1 parent 1e405e3 commit cb09ce3
2 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
68 | | - | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
108 | | - | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
69 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| |||
0 commit comments