Repository navigation
Commit 8f7c604
committed
Handle auto-rebase actions in CI table
A limitation of the engine-tests-report workflow running as a separate,
trusted workflow was that if you rebased a branch in the GitHub UI using
the "Update branch" button, it wouldn't have access to the PR number
in github.event.workflow_run.pull_requests. This array is allowed to be
empty according to the GitHub Actions docs. So the table wouldn't get
created or updated.
So instead save the PR number while preparing to run the engine-tests
jobs (the original, untrusted workflow always has a PR number) and
upload it as an artifact, which is downloaded by the engine-tests-report
workflow.
Another option might be to use the jwalton/gh-find-current-pr action,
but I wasn't super confident it would be actively maintained.
LLM disclosure: I used a bot to evaluate a couple of potential
solutions, generated one, then hand-edited the generated code (it
initially didn't work)1 parent ca7a2e5 commit 8f7c604
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
45 | 62 | | |
46 | 63 | | |
47 | 64 | | |
| |||
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
66 | | - | |
| 83 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
0 commit comments