Skip to content

Commit

Permalink
Merge pull request #23 from danepowell/fix-tests
Browse files Browse the repository at this point in the history
Fix tests and --preview
  • Loading branch information
danepowell authored Feb 21, 2023
2 parents 735ea26 + c027edc commit 714b09f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Self update testing
on: push
on: [push, pull_request]
jobs:
# Checkout in separate job because docker image is alpine based and checkout action doesn't work.
functional:
Expand Down
2 changes: 1 addition & 1 deletion src/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function getLatestReleaseFromGithub(array $options)
continue;
}

if (!$options['preview'] && (VersionParser::parseStability($releaseVersion) !== 'stable') || $release['prerelease']) {
if (!$options['preview'] && ((VersionParser::parseStability($releaseVersion) !== 'stable') || $release['prerelease'])) {
// If preview not requested and current version is not stable, look for the next one.
continue;
}
Expand Down

0 comments on commit 714b09f

Please sign in to comment.