Commit 3022f03
committed
Get reliable base ref for push-triggered "Compare Performance" workflow
The "Compare Performance" GitHub Actions workflow is intended to assist in the evaluation of performance impact of
proposed changes to the tool. It does this by comparing the duration of a run of the engine at the head ref of the
proposal against a base ref.
In the case where the workflow is triggered by a `push` event from a commit, the base ref should be the parent commit.
The previous approach of using the `github.event.before` context item was unreliable because this is set to the fake ref
`0000000000000000000000000000000000000000` when there has not been a previous workflow run on the branch (as is the case
when branch and commit are pushed from a local to the remote).1 parent 53e02d4 commit 3022f03
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments