Skip to content

Commit a7cc5dc

Browse files
authored
chore: update release script (#1554)
1 parent 09b779b commit a7cc5dc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

bin/release

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)