Fix update change log automation
MODIFY
.github/workflows/release.yml
.github/workflows/release.yml
@@ -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

Fix update change log automation (#5875)