From 80389f294efb31da73a69023b5a69d561ac3dbae Mon Sep 17 00:00:00 2001 From: Yuval Shavit Date: Sat, 1 Mar 2025 18:57:13 -0500 Subject: [PATCH] extract only the version string from the matched --- .github/workflows/readme-checks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/readme-checks.yml b/.github/workflows/readme-checks.yml index ae1adf5..18d0f15 100644 --- a/.github/workflows/readme-checks.yml +++ b/.github/workflows/readme-checks.yml @@ -28,7 +28,8 @@ jobs: run: | set -euo pipefail exit_code=0 - while IFS=: read -r file line_no found_rustc_version; do + while IFS=: read -r file line_no version_contents; do + found_rustc_version="${version_contents//rustc >= /}" if [[ "$found_rustc_version" == "$MSRV_VERSION" ]]; then echo "::notice file=$file,line=$line_no,title=version::✅ $found_rustc_version" else