Skip to content

Commit 0375205

Browse files
committed
ci: bors runs should build tools from the commit under test (#35154)
bors runs should build the tools from their commit-under-test: after all, we are trying to test 'what would happen if this was merged', so we need to use the 'would-be-post-merge' tools. Note that bors runs should have "trusted code" because after all some maintainer has to approve the bors run itself.
1 parent 574fbc0 commit 0375205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/bors.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
with:
2727
concurrency_group: ${{ github.workflow }}-${{ github.ref }}-${{ github.run_id }}
2828
pr_branch_ref: ${{ github.sha }}
29+
# bors runs should build the tools from their commit-under-test: after all, we are trying to
30+
# test 'what would happen if this was merged', so we need to use the 'would-be-post-merge' tools
31+
tools_branch_ref: ${{ github.sha }}
2932
# We don't wan't 'bors try' runs to compete with merge-candidates, so we pool trying with PR runs
3033
runs_on: ${{ github.ref_name == 'trying' && 'pr' || 'bors' }}
3134
secrets: inherit

0 commit comments

Comments
 (0)