Skip to content

Commit

Permalink
support dev-master
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Feb 2, 2017
1 parent f5200bb commit 0551cdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/limenet/Deploy/Deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ protected function checkBranch() : bool
{
if ($this->branch === 'master') {
return strpos($this->payload['ref'], 'refs/tags/') !== false;
} elseif ($this->branch === 'dev-master') {
return $this->payload['ref'] === 'refs/heads/master';
} else {
return $this->payload['ref'] === 'refs/heads/'.$this->branch;
}
Expand Down

0 comments on commit 0551cdc

Please sign in to comment.