From 6345ea6515f9ae31081ed39e63c9983e6ec218ff Mon Sep 17 00:00:00 2001 From: Xavier Moreno Date: Fri, 9 Apr 2021 18:29:53 +0200 Subject: [PATCH] docs(release_notes): add device related to #274 --- RELEASE_NOTES.md | 7 ++----- azure-pipelines.yml | 12 +++++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 1de1d1d0..dad727d5 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,7 +2,7 @@ _This minor change does not contain any breaking changes._ _Note: Remember to restart the AppDaemon addon/server after updating to a new version._ - +PRERELEASE_NOTE - +- [HG06323](https://xaviml.github.io/controllerx/controllers/HG06323) - add ZHA support [ #274 ] @Thomas55555 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 43ea144e..155f9c2d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -72,8 +72,14 @@ stages: includeRootFolder: false archiveType: zip archiveFile: $(Build.ArtifactStagingDirectory)/controllerx.zip - - script: sed 's/VERSION_TAG/${{ variables['Build.SourceBranchName'] }}/g' RELEASE_NOTES.md > tmp.md - displayName: Build RELEASE_NOTES.md + - script: sed -i 's/VERSION_TAG/${{ variables['Build.SourceBranchName'] }}/g' RELEASE_NOTES.md + displayName: Replace version in RELEASE_NOTES.md + - script: "sed -i 's/PRERELEASE_NOTE/Note: Some links might not work or might be not updated due to being a pre-release, and documentation is not yet available/g' RELEASE_NOTES.md" + displayName: Replace prerelease note in RELEASE_NOTES.md + condition: contains(variables['Build.SourceBranchName'], 'b') + - script: sed -i 's/PRERELEASE_NOTE//g' RELEASE_NOTES.md + displayName: Replace prerelease note in RELEASE_NOTES.md + condition: not(contains(variables['Build.SourceBranchName'], 'b')) - task: GithubRelease@0 displayName: Create GitHub Release inputs: @@ -83,4 +89,4 @@ stages: assets: $(Build.ArtifactStagingDirectory)/controllerx.zip title: $(Build.SourceBranchName) releaseNotesSource: file - releaseNotesFile: tmp.md + releaseNotesFile: RELEASE_NOTES.md