Skip to content

Commit aa79f14

Browse files
committed
Work CI-CD
- Add back tag trigger. - Fix parameter to not wait on update. - Fix conditions. ***NO_CI***
1 parent 7a09208 commit aa79f14

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ jobs:
3838
##############################
3939
- job: Build_Library
4040
condition: >-
41-
or(
42-
eq(variables['UPDATE_DEPENDENTS'], 'false'),
43-
eq(variables['StartReleaseCandidate'], 'true')
41+
and(
42+
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')),
43+
or(
44+
eq(variables['UPDATE_DEPENDENTS'], 'false'),
45+
eq(variables['StartReleaseCandidate'], 'true')
46+
)
4447
)
4548
pool:
4649
vmImage: 'windows-latest'
@@ -73,12 +76,10 @@ jobs:
7376
condition: >-
7477
or(
7578
and(
76-
succeeded(),
77-
startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
79+
startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
7880
eq(variables['StartReleaseCandidate'], 'false')
7981
),
8082
and(
81-
succeeded(),
8283
contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
8384
eq(variables['StartReleaseCandidate'], 'false')
8485
),
@@ -101,10 +102,7 @@ jobs:
101102
# update dependents
102103
- template: azure-pipelines-templates/update-dependents.yml@templates
103104
parameters:
104-
${{ if eq(variables['UPDATE_DEPENDENTS'], 'true') }}:
105-
waitBeforeUpdate: false
106-
${{ else }}:
107-
waitBeforeUpdate: true
105+
waitBeforeUpdate: false
108106
repositoriesToUpdate: |
109107
nanoFramework.Json
110108
nanoFramework.m2mqtt

0 commit comments

Comments
 (0)