Skip to content

Commit f3e9528

Browse files
committed
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.
1 parent ea6c77f commit f3e9528

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

azure-pipelines.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ jobs:
112112
condition: >-
113113
and(
114114
succeeded(),
115-
startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
115+
eq(variables['System.PullRequest.PullRequestId'], ''),
116+
startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
116117
not(contains(variables['Build.SourceBranch'], 'preview')),
117118
eq(variables['StartReleaseCandidate'], false)
118119
)
@@ -141,7 +142,8 @@ jobs:
141142
),
142143
and(
143144
succeeded(),
144-
contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
145+
eq(variables['System.PullRequest.PullRequestId'], ''),
146+
contains(variables['Build.SourceVersionMessage'], '***UPDATE_DEPENDENTS***'),
145147
eq(variables['StartReleaseCandidate'], 'false')
146148
),
147149
eq(variables['UPDATE_DEPENDENTS'], 'true')
@@ -166,10 +168,10 @@ jobs:
166168
- template: azure-pipelines-templates/update-dependents.yml@templates
167169
parameters:
168170
repositoriesToUpdate: |
171+
nanoFramework.TestFramework
169172
nanoFramework.Device.OneWire
170173
nanoFramework.Runtime.Events
171174
nanoFramework.Runtime.Native
172-
nanoFramework.TestFramework
173175
nanoFramework.Logging
174176
nanoFramework.Networking.Sntp
175177
nanoFramework.Hardware.Stm32

version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
33
"version": "1.14",
44
"assemblyVersion": {
5-
"precision": "revision"
5+
"precision": "build"
66
},
77
"semVer1NumericIdentifierPadding": 3,
88
"nuGetPackageVersion": {

0 commit comments

Comments
 (0)