Skip to content

Commit

Permalink
fix(version): Now fetching latest tags after creating a Github release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Jul 25, 2024
1 parent 8625688 commit 32461d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ ${fileContent.substring(changeLogHeader.length + 2)}''';
);
if (response.statusCode == 200 || response.statusCode == 201) {
stdout.writeln('Done.');
stdout.writeln('Fetching tags...');
await Future.delayed(const Duration(seconds: 1));
await Process.run(
'git',
['fetch', '--tags'],
stdoutEncoding: utf8,
);
stdout.writeln('Done.');
} else {
stderr.writeln('An error occurred (status code : ${response.statusCode}).');
}
Expand Down

0 comments on commit 32461d1

Please sign in to comment.