Skip to content

Commit 0fe110d

Browse files
committed
Work CI-CD
- GitHub release now produces release (not draft anymore). - Improve config for changelog generator. - Fix condition to run update dependents task. ***NO_CI***
1 parent 431284c commit 0fe110d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

azure-pipelines.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,19 +397,28 @@ jobs:
397397
title: 'nano firmware flasher v$(MY_NUGET_VERSION)'
398398
assets: '$(Build.ArtifactStagingDirectory)/*.nupkg'
399399
isPreRelease: false
400-
addChangeLog: true
401400
action: create
402-
isDraft: true
401+
isDraft: false
402+
addChangeLog: true
403+
changeLogType: issueBased
404+
changeLogLabels: |
405+
[
406+
{ "label" : "Type: bug", "displayName" : "Bugs fixed", "state" : "closed" },
407+
{ "label" : "Type: enhancement", "displayName" : "Enhancements and new features", "state" : "closed" },
408+
{ "label" : "Breaking-Change", "displayName" : "Breaking Changes", "state" : "closed" }
409+
{ "label" : "Type: dependencies", "displayName" : "Dependencies updated", "state" : "closed" },
410+
{ "label" : "Type: documentation", "displayName" : "Documentation", "state" : "closed" }
411+
]
403412
404413
# update dependencies
405414
- task: PowerShell@2
406415
condition: >-
407416
and(
408417
or(
409418
eq(variables['UPDATE_DEPENDENTS'], 'true'),
410-
eq(variables['RUN_UPDATE_DEPENDENTS'], 'true')
419+
eq($(run_update_dependents), 'true')
411420
),
412-
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
421+
not(startsWith($(Build.SourceBranch), 'refs/tags/v'))
413422
)
414423
displayName: Update dependent tools
415424
inputs:

0 commit comments

Comments
 (0)