Skip to content

Commit

Permalink
fix release notes generation
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkotas committed Jul 1, 2021
1 parent 635dedb commit 8b3d726
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .pipelines/go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ steps:
make build
displayName: Compile the code using makefile
- script: |
MESSAGE=$(git for-each-ref refs/tags/$(Build.SourceBranch))
echo "$MESSAGE" > release.txt
set -xe
TAG="$(git describe)"
MESSAGE="$(git for-each-ref refs/tags/$TAG --format='%(contents)')"
echo $(System.DefaultWorkingDirectory)
echo "$MESSAGE" > $(System.DefaultWorkingDirectory)/release.txt
displayName: Extract release notes from tag annotation
- task: GithubRelease@0
displayName: Publish release notes
inputs:
githubConnection: k8s-object-lock
repositoryName: petrkotas/k8s-object-lock
action: create
releaseNotesFile: $(System.DefaultWorkingDirectory)/**/release.txt
releaseNotesFile: $(System.DefaultWorkingDirectory)/release.txt
addChangeLog: true

0 comments on commit 8b3d726

Please sign in to comment.