Skip to content

Commit

Permalink
Make sure we get the actual most recent version of the branch (#2829)
Browse files Browse the repository at this point in the history
* Make sure we get the actual most recent version of the branch

* Update .vsts.template.windows.yml
  • Loading branch information
Danny McCormick authored Feb 28, 2020
1 parent 204c91e commit 2a4eeec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .vsts.template.nonwindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ steps:
- checkout: self
clean: true

- script: git checkout releases/$(version)
- script: |
git config user.email "[email protected]"
git config user.name "azure-pipelines-bot"
git checkout -f origin/releases/$(version)
displayName: Checkout release branch
condition: ne(variables['version'], '')

Expand Down
5 changes: 4 additions & 1 deletion .vsts.template.windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ steps:
- checkout: self
clean: true

- script: git checkout releases/$(version)
- script: |
git config user.email "[email protected]"
git config user.name "azure-pipelines-bot"
git checkout -f origin/releases/$(version)
displayName: Checkout release branch
condition: ne(variables['version'], '')

Expand Down

0 comments on commit 2a4eeec

Please sign in to comment.