Fix update change log automation (#5875)

This commit is contained in:
Trask Stalnaker 2022-04-18 19:52:51 -07:00 committed by GitHub
parent e15dbea4a6
commit 7352e39e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ jobs:
opentelemetry-javaagent.jar
- name: Update the change log with the release date
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
date=$(gh release view v$VERSION --json publishedAt --jq .publishedAt | sed 's/T.*//')
sed -ri "s/## Version $VERSION .*/## Version $VERSION ($date)/" CHANGELOG.md