From 6922d9fd10e115b99a536e4d0d604d5b8b8d36de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Fri, 26 Oct 2018 13:45:55 +0100 Subject: [PATCH] Work CD/CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updating assembly version in nf-interpreter is now carried only on tag - Update comment Signed-off-by: José Simões --- commit-assemblyinfo-changes.ps1 | 6 ++++++ generate-change-log.ps1 | 2 +- update-dependencies.ps1 | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/commit-assemblyinfo-changes.ps1 b/commit-assemblyinfo-changes.ps1 index 961798c2..8fb2d614 100644 --- a/commit-assemblyinfo-changes.ps1 +++ b/commit-assemblyinfo-changes.ps1 @@ -15,6 +15,12 @@ else 'Updated assembly info...' | Write-Host -ForegroundColor White -NoNewline 'OK' | Write-Host -ForegroundColor Green +} + +# update assembly info in nf-interpreter if this is tag +if ($env:APPVEYOR_REPO_TAG -eq "true") +{ + 'Updating assembly version in nf-interpreter...' | Write-Host -ForegroundColor White -NoNewline # clone nf-interpreter repo (only a shallow clone with last commit) git clone https://github.com/nanoframework/nf-interpreter -b develop --depth 1 -q diff --git a/generate-change-log.ps1 b/generate-change-log.ps1 index 772fa88b..9900d9c0 100644 --- a/generate-change-log.ps1 +++ b/generate-change-log.ps1 @@ -1,7 +1,7 @@ # Copyright (c) 2018 The nanoFramework project contributors # See LICENSE file in the project root for full license information. -# generate change log when build is NOT for a pull-request +# skip generating the change log when build is a pull-request or not a tag (can't commit when repo is in a tag) if ($env:appveyor_pull_request_number -or $env:APPVEYOR_REPO_TAG -eq "true") { 'Skip change log processing...' | Write-Host -ForegroundColor White diff --git a/update-dependencies.ps1 b/update-dependencies.ps1 index ee21364e..ef6c1db0 100644 --- a/update-dependencies.ps1 +++ b/update-dependencies.ps1 @@ -4,7 +4,7 @@ # only need to update dependencies when build is a tag if ($env:appveyor_pull_request_number -or $env:APPVEYOR_REPO_TAG -eq "false") { - 'Skip updating dependencies as this is not a tag build...' | Write-Host -ForegroundColor White + 'Skip updating dependencies...' | Write-Host -ForegroundColor White } else {