Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JJBussert committed May 4, 2021
1 parent 991365c commit db89395
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ stages:
- job: git_cleanup
steps:
- pwsh: |
git checkout --track -b master origin/master
git checkout --track -b main origin/main
git checkout --track -b deploy origin/deploy
$files = git diff deploy...master --name-only
$files = git diff deploy...main --name-only
foreach($file in $files){
if($null -ne ("src/"| ? { $file.StartsWith($_) })){
Write-Host "##vso[task.setvariable variable=createRelease]true"
Expand All @@ -136,13 +136,13 @@ stages:
}
Write-Host "Ready to merge and push changes to deploy"
git merge master
git merge main
git remote -v
git remote set-url origin https://${env:GITHUBKEY}@github.com/e13tech/common
git remote -v
git push
name: merge_master_into_deploy
name: merge_main_into_deploy
env:
GITHUBKEY: $(GITHUBKEY)
- task: GitHubRelease@1
Expand Down

0 comments on commit db89395

Please sign in to comment.