File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ async function updateBranch(
136136 branch : string ,
137137 checkNames : Set < string > ,
138138) {
139+ console . info ( `Updating '${ branch } '...` ) ;
140+
139141 // Query the current set of required checks for this branch.
140142 const currentContexts = await client . rest . repos . getAllStatusCheckContexts ( {
141143 ...codeqlActionRepo ,
@@ -209,6 +211,9 @@ async function main(): Promise<void> {
209211 const checkInfos = await getChecksFor ( client , options . ref ) ;
210212 const checkNames = new Set ( checkInfos . map ( ( info ) => info . context ) ) ;
211213
214+ // Update the main branch.
215+ await updateBranch ( client , "main" , checkNames ) ;
216+
212217 // Retrieve the refs of the release branches.
213218 const releaseBranches = await getReleaseBranches ( client ) ;
214219 console . info (
@@ -236,7 +241,6 @@ async function main(): Promise<void> {
236241 ) ;
237242 continue ;
238243 } else {
239- console . info ( `Updating '${ releaseBranch } '...` ) ;
240244 await updateBranch ( client , releaseBranch , checkNames ) ;
241245 }
242246 }
You can’t perform that action at this time.
0 commit comments