From 9408d9cd0e259c1cdcb2b26e6a6d55471e822368 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 20 Sep 2021 11:14:01 +0200 Subject: [PATCH] Update appveyor.yml --- appveyor.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 6b8b29e8c..74a465cfd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,8 @@ image: Previous Visual Studio 2019 -init: - - cmd: git config --global core.autocrlf true - - elsa_build_version = "1.1.1" - environment: elsa_version: 2.3.0 - # elsa_build_version: 0.0.0 + elsa_build_version: 0.0.0 nodejs_version: "14.6.0" # AppVeyor installs Java on its build agents by default, but it # picks an old version that's not compatible with SonarQube. @@ -17,7 +13,19 @@ environment: sonarcloud_api_key: secure: qaE9kOVkGGFM7ZMf3YeliZxDU9udTCy6W5xXHJ9T+tXv5qXPMYlIdR7hyNgxW04A -version: ${elsa_build_version} +init: + - cmd: git config --global core.autocrlf true + - ps: | + if ($env:APPVEYOR_REPO_TAG -eq "true") + { + $env:elsa_build_version=$env:APPVEYOR_REPO_TAG_NAME + } + else + { + $env:elsa_build_version="$($env:elsa_version)-preview.$($env:APPVEYOR_BUILD_NUMBER)" + } + +version: 2.3.0-preview.{build} pull_requests: do_not_increment_build_number: true