Skip to content

Commit c115598

Browse files
committed
Apply the bors environment also to the outcome job
To fix passing the toolstate token to `publish_toolstate.sh`.
1 parent 83e49b7 commit c115598

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ jobs:
313313
needs: [ calculate_matrix, job ]
314314
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
315315
if: ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}
316+
environment: ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/auto')) && 'bors') || '' }}
316317
steps:
317318
- name: checkout the source code
318319
uses: actions/checkout@v5

0 commit comments

Comments
 (0)