diff --git a/.appveyor/moveTagForSpecialBranches.ps1 b/.appveyor/moveTagForSpecialBranches.ps1 index 78f3dac2..f4f1e3df 100644 --- a/.appveyor/moveTagForSpecialBranches.ps1 +++ b/.appveyor/moveTagForSpecialBranches.ps1 @@ -1,5 +1,8 @@ + if($Env:APPVEYOR_REPO_TAG -ne "true") { + Write-Host "Pushed tag detected" if($Env:APPVEYOR_REPO_BRANCH -eq "appveyorTest"){ + Write-Host "Nightly build tag was detected" $targetTag = "Nightly" $Env:NIGHTLY_BUILD = true } @@ -7,10 +10,15 @@ if($Env:APPVEYOR_REPO_TAG -ne "true") { Write-Host "No special branch found" Return } + Write-Host "Moving tag $targetTag to $Env:APPVEYOR_REPO_BRANCH" git config --global user.email "build@vocaluxe.de"; git config --global user.name "Vocaluxe_Automatic_Build"; git tag "$targetTag" -f; git push -q -f "https://$($Env:GitHubKey):x-oauth-basic@github.com/lukeIam/Vocaluxe.git" "$targetTag"; Write-Host "Tag $targetTag points now to the head of branch $Env:APPVEYOR_REPO_BRANCH" +} +else +{ + Write-Host "No tag for this detected" } \ No newline at end of file