chore: an attemp to fix CI failure after the recent CHANGELOG changes

pull/1890/head
Ellet 11 months ago
parent 51614e84db
commit a189c30119
  1. 2
      .github/workflows/publish.yml
  2. 8
      scripts/update_package_version.dart

@ -71,7 +71,7 @@ jobs:
uses: ffurrer2/extract-release-notes@v2
- name: Update the version & CHANGELOG for all the packages
run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }} ${{ steps.extract-release-notes.outputs.release_notes }}
run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }} "${{ steps.extract-release-notes.outputs.release_notes }}"
- name: Commit the changes of the updated version & CHANGELOG for all the packages
id: auto-commit-action

@ -35,21 +35,21 @@ const _usage = 'Usage: ./script <version> <changelog-version-content>';
/// the package
Future<void> main(List<String> args) async {
if (args.isEmpty || args.length < 2) {
print('Missing required arguments. $_usage');
print('Missing required arguments ($args). $_usage');
exit(1);
}
if (args.length > 2) {
print('Too many arguments. $_usage');
print('Too many arguments ($args). $_usage');
exit(1);
}
final passedVersion = args[0];
if (passedVersion.isEmpty) {
print('The version is empty. $_usage');
print('The version is empty ($args). $_usage');
exit(1);
}
final passedVersionContent = args[1];
if (passedVersionContent.isEmpty) {
print('The version content is empty. $_usage');
print('The version content is empty ($args). $_usage');
exit(1);
}

Loading…
Cancel
Save