Skip to content

Commit 80c9e9b

Browse files
authored
Merge pull request #180 from bitmovin/ci/update-readme-version-on-release
Update README version during release
2 parents 9dc1885 + fe86a2c commit 80c9e9b

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)