Skip to content

Commit

Permalink
Fix the expected format for GitHub refs (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Jan 12, 2021
1 parent ae967c7 commit 0cae330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/grind/sanity_check.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}.");
}

Expand Down

0 comments on commit 0cae330

Please sign in to comment.