Skip to content

Commit fe86a2c

Browse files
committed
Update README version during release
The release workflow bumps the version in gradle.properties and the CHANGELOG but left the dependency snippet in README.md pinned to the previous release, so the documented version drifted behind each release. Rewrite the README dependency coordinate to the release version and include README.md in the release commit.
1 parent 9dc1885 commit fe86a2c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ jobs:
5050
- name: Promote CHANGELOG unreleased section
5151
run: ./gradlew patchChangelog
5252

53+
- name: Update version in README
54+
run: |
55+
sed -i -E "s|(implementation 'com\.bitmovin\.player\.integration:yospace:)[^']+'|\1${{ steps.version.outputs.next }}'|" README.md
56+
5357
- name: Extract release notes
5458
run: ./gradlew getChangelog -q --console=plain --no-header --no-summary --no-empty-sections --project-version=${{ steps.version.outputs.next }} --output-file=build/release-notes.md
5559

5660
- name: Commit, tag and push
5761
run: |
5862
git config user.name 'Automated Release'
5963
git config user.email 'release-automation@bitmovin.com'
60-
git add gradle.properties CHANGELOG.md
64+
git add gradle.properties CHANGELOG.md README.md
6165
git commit -m "Release ${{ steps.version.outputs.next }}"
6266
git tag -a "${{ steps.version.outputs.next }}" -m "${{ steps.version.outputs.next }}"
6367
git push origin main

0 commit comments

Comments
 (0)