Repository: tokio-rs/prost (language: rust)

Issue:
Remove duplicated README
To unblock the release process, I have duplicated the README into the prost crate (#1052).  This should be removed. 

I see two solutions: 
1) Split the readme into:
- README.md for how to use the repository 
- prost/README.md for an explanation of the crate prost
- prost/lib.rs for instructions on using the prost crate

The other crates in the repo have a similar split README.md and lib.rs

2) Tokio has solved this differently. They have a duplicated README and a CI job to check they keep in sync. https://github.com/tokio-rs/tokio/blob/e62c3e92692f795c407beadff580fa1380df5a26/.github/workflows/ci.yml#L798-L808


Discussion / hints:
We should follow what tokio does, I think that makes the most sense to me.

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fa25252c5..e6905ea42 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,6 +27,7 @@ jobs:
       - minimal-versions
       - kani
       - no-std
+      - check-readme
     steps:
       - run: exit 0
 
@@ -202,3 +203,15 @@ jobs:
       # prost's default features to compile.
       - name: prost-build check
         run: cargo check --manifest-path prost-build/Cargo.toml
+
+  check-readme:
+    name: Check README
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: Verify that both READMEs are identical
+        run: diff README.md prost/README.md
+
+      - name: Verify that Prost version is up to date in README
+        working-directory: prost
+        run: grep -q "$(sed '/^version = /!d' Cargo.toml | head -n1)" README.md
diff --git a/README.md b/README.md
index 13f7259ff..9d3ae6144 100644
--- a/README.md
+++ b/README.md
@@ -380,9 +380,9 @@ the `std` features in `prost` and `prost-types`:
 
 ```ignore
 [dependencies]
-prost = { version = "0.6", default-features = false, features = ["prost-derive"] }
+prost = { version = "0.12.6", default-features = false, features = ["prost-derive"] }
 # Only necessary if using Protobuf well-known types:
-prost-types = { version = "0.6", default-features = false }
+prost-types = { version = "0.12.6", default-features = false }
 ```
 
 Additionally, configure `prost-build` to output `BTreeMap`s instead of `HashMap`s
diff --git a/prepare-release.sh b/prepare-release.sh
index f4b774251..bd1ee9fdb 100755
--- a/prepare-release.sh
+++ b/prepare-release.sh
@@ -14,13 +14,13 @@ fi
 
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 VERSION="$1"
-MINOR="$( echo ${VERSION} | cut -d\. -f1-2 )"
 
 VERSION_MATCHER="([a-z0-9\\.-]+)"
 PROST_CRATE_MATCHER="(prost|prost-[a-z]+)"
 
 # Update the README.md.
-sed -i -E "s/${PROST_CRATE_MATCHER} = \"${VERSION_MATCHER}\"/\1 = \"${MINOR}\"/" "$DIR/README.md"
+sed -i -E "s/version = \"${VERSION_MATCHER}\"/version = \"${VERSION}\"/" "$DIR/README.md"
+sed -i -E "s/version = \"${VERSION_MATCHER}\"/version = \"${VERSION}\"/" "$DIR/prost/README.md"
 
 # Update html_root_url attributes.
 sed -i -E "s~html_root_url = \"https://docs\.rs/${PROST_CRATE_MATCHER}/$VERSION_MATCHER\"~html_root_url = \"https://docs.rs/\1/${VERSION}\"~" \
diff --git a/prost/README.md b/prost/README.md
index 13f7259ff..9d3ae6144 100644
--- a/prost/README.md
+++ b/prost/README.md
@@ -380,9 +380,9 @@ the `std` features in `prost` and `prost-types`:
 
 ```ignore
 [dependencies]
-prost = { version = "0.6", default-features = false, features = ["prost-derive"] }
+prost = { version = "0.12.6", default-features = false, features = ["prost-derive"] }
 # Only necessary if using Protobuf well-known types:
-prost-types = { version = "0.6", default-features = false }
+prost-types = { version = "0.12.6", default-features = false }
 ```
 
 Additionally, configure `prost-build` to output `BTreeMap`s instead of `HashMap`s


Test patch: