From f3e9528bc787a57262a6f9322885abd0dfb38b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Thu, 22 Dec 2022 14:03:59 +0000 Subject: [PATCH] Work CI-CD - Change config for nbgv to have short versions. - Pipeline now creates github releases. - Fix conditions to run update dependents job. - Move update to test framework higher in the update list. --- azure-pipelines.yml | 8 +++++--- version.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 042cafc4..ca63e3de 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -112,7 +112,8 @@ jobs: condition: >- and( succeeded(), - startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), + eq(variables['System.PullRequest.PullRequestId'], ''), + startsWith(variables['Build.SourceBranch'], 'refs/heads/main'), not(contains(variables['Build.SourceBranch'], 'preview')), eq(variables['StartReleaseCandidate'], false) ) @@ -141,7 +142,8 @@ jobs: ), and( succeeded(), - contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'), + eq(variables['System.PullRequest.PullRequestId'], ''), + contains(variables['Build.SourceVersionMessage'], '***UPDATE_DEPENDENTS***'), eq(variables['StartReleaseCandidate'], 'false') ), eq(variables['UPDATE_DEPENDENTS'], 'true') @@ -166,10 +168,10 @@ jobs: - template: azure-pipelines-templates/update-dependents.yml@templates parameters: repositoriesToUpdate: | + nanoFramework.TestFramework nanoFramework.Device.OneWire nanoFramework.Runtime.Events nanoFramework.Runtime.Native - nanoFramework.TestFramework nanoFramework.Logging nanoFramework.Networking.Sntp nanoFramework.Hardware.Stm32 diff --git a/version.json b/version.json index 3425c61e..a8bd3317 100644 --- a/version.json +++ b/version.json @@ -2,7 +2,7 @@ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.14", "assemblyVersion": { - "precision": "revision" + "precision": "build" }, "semVer1NumericIdentifierPadding": 3, "nuGetPackageVersion": {