File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1515 - try
1616 - try-perf
1717 - automation/bors/try
18+ - automation/bors/auto
1819 pull_request :
1920 branches :
2021 - " **"
5657 - name : Test citool
5758 # Only test citool on the auto branch, to reduce latency of the calculate matrix job
5859 # on PR/try builds.
59- if : ${{ github.ref == 'refs/heads/auto' }}
60+ if : ${{ github.ref == 'refs/heads/auto' || github.ref == 'refs/heads/automation/bors/auto' }}
6061 run : |
6162 cd src/ci/citool
6263 CARGO_INCREMENTAL=0 cargo test
7980 # access the environment.
8081 #
8182 # We only enable the environment for the rust-lang/rust repository, so that CI works on forks.
82- 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') || '' }}
83+ 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' || github.ref == 'refs/heads/automation/bors/auto' )) && 'bors') || '' }}
8384 env :
8485 CI_JOB_NAME : ${{ matrix.name }}
8586 CI_JOB_DOC_URL : ${{ matrix.doc_url }}
@@ -313,7 +314,7 @@ jobs:
313314 needs : [ calculate_matrix, job ]
314315 # !cancelled() executes the job regardless of whether the previous jobs passed or failed
315316 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') || '' }}
317+ 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' || github.ref == 'refs/heads/automation/bors/auto' )) && 'bors') || '' }}
317318 steps :
318319 - name : checkout the source code
319320 uses : actions/checkout@v5
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ impl GitHubContext {
4646 let patterns = if !patterns. is_empty ( ) { Some ( patterns) } else { None } ;
4747 Some ( RunType :: TryJob { job_patterns : patterns } )
4848 }
49- ( "push" , "refs/heads/auto" ) => Some ( RunType :: AutoJob ) ,
49+ ( "push" , "refs/heads/auto" | "refs/heads/automation/bors/auto" ) => {
50+ Some ( RunType :: AutoJob )
51+ }
5052 ( "push" , "refs/heads/main" ) => Some ( RunType :: MainJob ) ,
5153 _ => None ,
5254 }
You can’t perform that action at this time.
0 commit comments