File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 73
73
needs : [ calculate_matrix ]
74
74
runs-on : " ${{ matrix.os }}"
75
75
timeout-minutes : 360
76
+ # The bors environment contains secrets required for elevated workflows (try and auto builds),
77
+ # which need to access e.g. S3 and upload artifacts. We want to provide access to that
78
+ # environment only on the try/auto branches, which are only accessible to bors.
79
+ # This also ensures that PR CI (which doesn't get write access to S3) works, as it cannot
80
+ # access the environment.
81
+ #
82
+ # We only enable the environment for the rust-lang/rust repository, so that rust-lang-ci/rust
83
+ # CI works until we migrate off it (since that repository doesn't contain the environment).
84
+ environment : ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/auto')) && 'bors') || '' }}
76
85
env :
77
86
CI_JOB_NAME : ${{ matrix.name }}
78
87
CI_JOB_DOC_URL : ${{ matrix.doc_url }}
You can’t perform that action at this time.
0 commit comments