Skip to content

Commit 7369a36

Browse files
committed
Get commit hash from nightly manifest correctly
1 parent 5bd2a99 commit 7369a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/check-rust-toolchain-upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if [ "$LATEST_DATE_NUM" -gt "$CURRENT_DATE_NUM" ]; then
3838
echo "::notice::New nightly available: $LATEST_DATE (current: $CURRENT_DATE)"
3939

4040
# Get commit hash from the already fetched manifest
41-
COMMIT_HASH=$(echo "$MANIFEST_CONTENT" | grep -A 50 '\[pkg.rust\]' | grep 'git-commit-hash = ' | head -1 | sed 's/git-commit-hash = "\(.*\)"/\1/')
41+
COMMIT_HASH=$(echo "$MANIFEST_CONTENT" | grep -A 50 '\[pkg.rust\]' | grep 'git_commit_hash = ' | head -1 | sed 's/git_commit_hash = "\(.*\)"/\1/')
4242

4343
if [ -z "$COMMIT_HASH" ]; then
4444
echo "::error::Could not extract commit hash from manifest"

0 commit comments

Comments
 (0)