From dbf58ba8d950e730fcb2281f6dec84ef459d2b31 Mon Sep 17 00:00:00 2001 From: spoonerf Date: Thu, 20 Feb 2025 09:38:57 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20update=20script=20measles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 49646cba5c9cfe6d0940517a81b05ef35f2106ae Mon Sep 17 00:00:00 2001 From: spoonerf Date: Thu, 20 Feb 2025 09:39:15 +0000 Subject: [PATCH 2/2] add measles update script --- scripts/update-measles.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 scripts/update-measles.sh diff --git a/scripts/update-measles.sh b/scripts/update-measles.sh new file mode 100755 index 00000000000..ba7b0db7727 --- /dev/null +++ b/scripts/update-measles.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# +# update-wildfires.sh +# +# Update wildfires dataset data://garden/climate/latest/weekly_wildfires +# + +set -e + +start_time=$(date +%s) + +echo '--- Update measles' +cd /home/owid/etl + +uv run python snapshots/cdc/latest/measles_cases.py + +# commit to master will trigger ETL which is gonna run the step +echo '--- Commit and push changes' + +git add . +git commit -m ":robot: automatic measles update" || true +git push origin master -q || true + +end_time=$(date +%s) + +echo "--- Done! ($(($end_time - $start_time))s)"