Commit 1a05f04
authored
feat: add script to update versions in README.adoc (#4176)
**Description**
This PR introduces a new script to automate the process of updating the
version numbers in the README.adoc file.
**Problem**
The README.adoc file contains links to the documentation for different
versions of the project. These version numbers are hardcoded and need to
be updated manually for each new release. This is a tedious and
error-prone process.
**Solution**
This PR adds a new shell script named
`update_latest_versions_in_readme.sh` in the `docs/` folder. This
script:
1. Fetches the latest version numbers for each major release line (6.x,
5.x, 4.x, 3.x) from the maven-metadata.xml file in the Maven Central
repository.
2. Uses sed to directly update the hardcoded version numbers in the
README.adoc file.
**How to use the script**
To update the versions in the README.adoc file, simply run the following
command from the root of the project:
1 `./docs/update_latest_versions_in_readme.sh`
This will ensure that the README.adoc file always points to the latest
released versions of the documentation.1 parent 020c2a4 commit 1a05f04
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments