Apply the bors environment also to the outcome job

To fix passing the toolstate token to `publish_toolstate.sh`.
This commit is contained in:
Jakub Beránek 2025-12-03 20:44:33 +01:00
parent 83e49b75e7
commit c115598506
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -313,6 +313,7 @@ jobs:
needs: [ calculate_matrix, job ]
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
if: ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}
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') || '' }}
steps:
- name: checkout the source code
uses: actions/checkout@v5