@@ -132,9 +132,12 @@ jobs:
132
132
run : |
133
133
# Another benchmarking task may have created results for the same
134
134
# commit while the above was running. This "magic" incantation means
135
- # that any local results for this commit will override anything we
136
- # just pulled in in that case.
137
- git pull -s recursive -X ours --autostash --rebase
135
+ # that any local results for this commit will override anything that
136
+ # happened in the meantime.
137
+ # https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
138
+ git stash
139
+ git pull -s recursive --rebase
140
+ git cherry-pick -n -m1 -Xtheirs stash
138
141
- name : Add data to repo
139
142
if : ${{ steps.should_run.outputs.should_run != 'false' }}
140
143
uses : EndBug/add-and-commit@v9
@@ -236,9 +239,12 @@ jobs:
236
239
run : |
237
240
# Another benchmarking task may have created results for the same
238
241
# commit while the above was running. This "magic" incantation means
239
- # that any local results for this commit will override anything we
240
- # just pulled in in that case.
241
- git pull -s recursive -X ours --autostash --rebase
242
+ # that any local results for this commit will override anything that
243
+ # happened in the meantime.
244
+ # https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
245
+ git stash
246
+ git pull -s recursive --rebase
247
+ git cherry-pick -n -m1 -Xtheirs stash
242
248
- name : Adding data to repo
243
249
if : ${{ steps.should_run.outputs.should_run != 'false' && !inputs.perf }}
244
250
uses : EndBug/add-and-commit@v9
@@ -338,9 +344,12 @@ jobs:
338
344
run : |
339
345
# Another benchmarking task may have created results for the same
340
346
# commit while the above was running. This "magic" incantation means
341
- # that any local results for this commit will override anything we
342
- # just pulled in in that case.
343
- git pull -s recursive -X ours --autostash --rebase
347
+ # that any local results for this commit will override anything that
348
+ # happened in the meantime.
349
+ # https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
350
+ git stash
351
+ git pull -s recursive --rebase
352
+ git cherry-pick -n -m1 -Xtheirs stash
344
353
- name : Add data to repo
345
354
if : ${{ steps.should_run.outputs.should_run != 'false' }}
346
355
uses : EndBug/add-and-commit@v9
0 commit comments