From 0cae33007fc639ece1b85802156bdd700e765dfd Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Mon, 11 Jan 2021 16:11:24 -0800 Subject: [PATCH] Fix the expected format for GitHub refs (#1197) --- tool/grind/sanity_check.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/grind/sanity_check.dart b/tool/grind/sanity_check.dart index b3eb83b83..4f8c52e44 100644 --- a/tool/grind/sanity_check.dart +++ b/tool/grind/sanity_check.dart @@ -14,7 +14,7 @@ import 'utils.dart'; @Task('Verify that the package is in a good state to release.') void sanityCheckBeforeRelease() { var ref = environment("GITHUB_REF"); - if (ref != pkg.version.toString()) { + if (ref != "refs/tags/${pkg.version}") { fail("GITHUB_REF $ref is different than pubspec version ${pkg.version}."); }