Skip to content

Commit 98038b0

Browse files
committed
Release wf: update the release version in the doc site as well (index.md)
1 parent 2eeac4b commit 98038b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ jobs:
4848
- name: Update with the release version
4949
run: |
5050
CURRENT_VERSION=$(grep Version DESCRIPTION | sed 's/Version: \(.*\).9000/\1/g')
51+
sed -i -E "s/$CURRENT_VERSION/${{ steps.release_version.outputs.version }}/g" index.md
5152
sed -i -E "s/$CURRENT_VERSION/${{ steps.release_version.outputs.version }}/g" README.md
5253
sed -i -E 's/Version: .*/Version: ${{ steps.release_version.outputs.version }}/g' DESCRIPTION
5354
5455
- name: Commit with the release version
5556
run: |
57+
git add index.md
5658
git add README.md
5759
git add DESCRIPTION
5860
git commit -m "[RELEASE] Set the release version to ${{ steps.release_version.outputs.version }}"

0 commit comments

Comments
 (0)