File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 31
31
arch : ' x86_64'
32
32
33
33
steps :
34
+ # Pull requests can trail behind `master` and can cause breakage if merging before running the CI checks on an updated branch.
35
+ # Luckily, GitHub creates and maintains a merge branch that is updated whenever the target or source branch is modified. By
36
+ # checking this branch out, we gain a stabler `master` at the cost of reproducibility.
34
37
- uses : actions/checkout@v3
38
+ if : ${{ github.event_name != 'pull_request' }}
39
+
40
+ - uses : actions/checkout@v3
41
+ if : ${{ github.event_name == 'pull_request' }}
42
+ with :
43
+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
44
+
35
45
# Set default Python to python 3.x, and set Python path such that pip install works properly
36
46
- uses : actions/setup-python@v4
37
47
with :
You can’t perform that action at this time.
0 commit comments