Skip to content

Commit

Permalink
Merge pull request OpenLiberty#279 from OpenLiberty/Fix_QA_Guides_Gui…
Browse files Browse the repository at this point in the history
…de_Clone

Fix qa guides guide clone
  • Loading branch information
evie-lau authored Mar 29, 2018
2 parents 8513f15 + 7496154 commit a8ced2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build_clone_guides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# DRAFT GUIDES
# Clone guides that are still being drafted and are only for the staging website
if repo_name.start_with?('draft-iguide')
# Always clone the master branch for interactive guides
# Clone the draft interactive guides, using the dev branch for travis and master for all other environments.
`git clone https://github.com/OpenLiberty/#{repo_name}.git --branch #{iguide_branch} --single-branch src/main/content/guides/#{repo_name}`
elsif repo_name.start_with?('draft-guide')
`git clone https://github.com/OpenLiberty/#{repo_name}.git src/main/content/guides/#{repo_name}`
Expand All @@ -52,8 +52,8 @@
# PUBLISHED GUIDES
# Clone interactive guides that are ready to be published to openliberty.io
if repo_name.start_with?('iguide')
# Always clone the master branch for interactive guides
`git clone https://github.com/OpenLiberty/#{repo_name}.git --branch master --single-branch src/main/content/guides/#{repo_name}`
# Clone the interactive guides, using the dev branch for travis and master for all other environments.
`git clone https://github.com/OpenLiberty/#{repo_name}.git --branch #{iguide_branch} --single-branch src/main/content/guides/#{repo_name}`
elsif repo_name.start_with?('guide')
# Clone static guides that are ready to be published to openliberty.io
`git clone https://github.com/OpenLiberty/#{repo_name}.git src/main/content/guides/#{repo_name}`
Expand Down

0 comments on commit a8ced2a

Please sign in to comment.