mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Ensure that update handling is done on the master branch.
This commit is contained in:
parent
458306fb35
commit
12aece3511
1 changed files with 3 additions and 0 deletions
3
Rakefile
3
Rakefile
|
@ -252,6 +252,9 @@ end
|
||||||
# ----- Handling Updates -----
|
# ----- Handling Updates -----
|
||||||
|
|
||||||
task :handle_update do
|
task :handle_update do
|
||||||
|
sh %{git checkout master}
|
||||||
|
sh %{git pull origin master}
|
||||||
|
|
||||||
if ENV["REF"] == "refs/heads/master"
|
if ENV["REF"] == "refs/heads/master"
|
||||||
sh %{rake release_edge &> edge-gem-output.log}
|
sh %{rake release_edge &> edge-gem-output.log}
|
||||||
elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
|
elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
|
||||||
|
|
Loading…
Add table
Reference in a new issue