File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ function updateBranchProtection(bool $enabled): void
186186 );
187187
188188 if (! $ response ->status ->isSuccessful ()) {
189+ lw ($ response ->body );
189190 throw new Exception ('Failed to update branch ruleset. ' );
190191 }
191192}
@@ -391,7 +392,10 @@ try {
391392 );
392393
393394 // Disable protection
394- updateBranchProtection (enabled: false );
395+ $ console ->task (
396+ label: 'Disabling branch protection ' ,
397+ handler: fn () => updateBranchProtection (enabled: false ),
398+ );
395399
396400 // Push tags
397401 $ console ->task (
@@ -415,7 +419,12 @@ try {
415419 },
416420 );
417421
418- updateBranchProtection (enabled: true );
422+ // Enable branch protection
423+ $ console ->task (
424+ label: 'Enabling branch protection ' ,
425+ handler: fn () => updateBranchProtection (enabled: true ),
426+ );
427+
419428 triggerSubsplit ();
420429
421430 $ console ->success (sprintf (
You can’t perform that action at this time.
0 commit comments