Commit 1af8ce2
committed
Use previous tag as base when "Compare Performance" workflow triggered by tag
The engine has three trigger events, each with their own base ref:
- push: parent commit
- pull request: PR base ref
- manual trigger: arbitrary ref selected by the user
The `push` event is triggered by both commit pushes and tag pushes. It turns out the github context field that provides
the parent commit ref is set to `0000000000000000000000000000000000000000` on a tag push, which caused the workflow to
fail. Although it would be possible to get the parent commit ref via a git command, this isn't a useful comparison to get
from a tag push. The more useful comparison will be against the previous tag.1 parent 19a08e8 commit 1af8ce2
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
44 | 63 | | |
45 | 64 | | |
46 | 65 | | |
| |||
0 commit comments