Skip to content

Commit

Permalink
Pull target branch
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Mar 7, 2023
1 parent 27b4094 commit e600681
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ trigger:
branches:
include:
- releases/*
- master
- main
- develop

pool:
vmImage: 'macos-latest'
Expand Down
5 changes: 4 additions & 1 deletion jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
- checkout: CelestiaContent
fetchDepth: 1
- checkout: CelestiaLocalization
fetchDepth: 1
- checkout: self
submodules: true

Expand All @@ -33,13 +32,17 @@ jobs:
cd Celestia
git checkout origin/$(Build.SourceBranchName)
git submodule update --init thirdparty/miniaudio
cd ../CelestiaLocalization
git checkout origin/$(Build.SourceBranchName)
displayName: 'Checkout Branch'
condition: ne( variables['Build.Reason'], 'PullRequest' )
- script: |
cd Celestia
git checkout origin/$(System.PullRequest.TargetBranch)
git submodule update --init thirdparty/miniaudio
cd ../CelestiaLocalization
git checkout origin/$(System.PullRequest.TargetBranch)
displayName: 'Checkout Branch (PR)'
condition: eq( variables['Build.Reason'], 'PullRequest' )
Expand Down

0 comments on commit e600681

Please sign in to comment.