Commit f94ec4e
committed
feat: Enhance exportAndPushJSONToGitHub.sh with intelligent incremental export and documentation updates
- Updated the exportAndPushJSONToGitHub.sh script to implement intelligent incremental export, processing countries one by one and pushing changes immediately.
- Added automatic detection of missing or outdated countries, cleanup of obsolete countries from GitHub, and schema validation for JSON files.
- Enhanced README generation with an alphabetical list of countries and improved documentation for usage and environment variables.
- Introduced new environment variables: MAX_AGE_DAYS and COUNTRIES_PER_BATCH for better control over the export process.
- Added unit tests to ensure functionality and maintainability of the script.1 parent 1f8c59b commit f94ec4e
File tree
5 files changed
+738
-175
lines changed- bin
- dwh
- tests/unit/bash
5 files changed
+738
-175
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
365 | 368 | | |
366 | 369 | | |
367 | 370 | | |
368 | 371 | | |
369 | | - | |
| 372 | + | |
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
373 | 382 | | |
374 | 383 | | |
375 | 384 | | |
376 | | - | |
| 385 | + | |
377 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
378 | 390 | | |
379 | 391 | | |
380 | | - | |
| 392 | + | |
381 | 393 | | |
382 | 394 | | |
383 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
138 | 149 | | |
139 | 150 | | |
| 151 | + | |
140 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
141 | 156 | | |
142 | 157 | | |
143 | 158 | | |
| |||
0 commit comments