Skip to content

Commit

Permalink
Skip self update
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Apr 4, 2024
1 parent bbe3b44 commit 9b36b8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Drush/Commands/UpdateDrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ private function needsUpdate(UpdateOptions $options) : bool {
if (!$options->selfUpdate) {
return FALSE;
}

// Skip self-update check if we're using a custom branch.
if (InstalledVersions::getVersion('drupal/helfi_drupal_tools') !== 'dev-main') {
return FALSE;
}
$body = $this->httpClient
->request('GET', 'https://api.github.com/repos/city-of-helsinki/drupal-tools/commits/main')
->getBody()
Expand Down

0 comments on commit 9b36b8d

Please sign in to comment.