From 912933ae5e1ad6f516429cf99525368aa19cf2e8 Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Sun, 20 Jul 2025 22:46:00 +0300 Subject: [PATCH] Get commit hash from nightly manifest correctly --- .github/check-rust-toolchain-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/check-rust-toolchain-upgrade.sh b/.github/check-rust-toolchain-upgrade.sh index d15f32c3c3..bb8da87db4 100755 --- a/.github/check-rust-toolchain-upgrade.sh +++ b/.github/check-rust-toolchain-upgrade.sh @@ -38,7 +38,7 @@ if [ "$LATEST_DATE_NUM" -gt "$CURRENT_DATE_NUM" ]; then echo "::notice::New nightly available: $LATEST_DATE (current: $CURRENT_DATE)" # Get commit hash from the already fetched manifest - COMMIT_HASH=$(echo "$MANIFEST_CONTENT" | grep -A 50 '\[pkg.rust\]' | grep 'git-commit-hash = ' | head -1 | sed 's/git-commit-hash = "\(.*\)"/\1/') + COMMIT_HASH=$(echo "$MANIFEST_CONTENT" | grep -A 50 '\[pkg.rust\]' | grep 'git_commit_hash = ' | head -1 | sed 's/git_commit_hash = "\(.*\)"/\1/') if [ -z "$COMMIT_HASH" ]; then echo "::error::Could not extract commit hash from manifest"