Commit 32d0f9d
authored
CI: check the XML structure of the PR head, not of the merge commit (#3193)
On a pull_request event, actions/checkout defaults to refs/pull/N/merge,
whose second parent is master. The BASE...HEAD diff therefore also lists
every file landed on master since the last push to the PR, and feeds them
to check-structure.php. A pull request touching a single non-XML file was
seen sending 294 unrelated .xml files to the check, failing on drift it
did not introduce.
Checking out the head sha restores the diff to the commits of the PR.
The expected directory layout is now noted in the workflow itself.1 parent a22ff31 commit 32d0f9d
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
0 commit comments