From bf55578f9afade7696604e4c396a4ae3fd767e99 Mon Sep 17 00:00:00 2001 From: Sam Sneddon Date: Fri, 8 Apr 2022 17:26:23 +0100 Subject: [PATCH 1/2] Regenerate data more often Now we're regenerating everything from scratch on each run, including BSF, there's no reason to not regenerate everything more often. The only downside here is that we will be changing the results for the yesterday/today on multiple occasions, rather than the figures being mostly constant once they're added. --- .github/workflows/update_gh_pages.yml | 4 ++-- build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_gh_pages.yml b/.github/workflows/update_gh_pages.yml index ab9d61c58..408afa25b 100644 --- a/.github/workflows/update_gh_pages.yml +++ b/.github/workflows/update_gh_pages.yml @@ -1,8 +1,8 @@ name: Update gh-pages on: - # Trigger on UTC noon daily, or manually. + # Trigger on every three hours, or manually. schedule: - - cron: '0 12 * * *' + - cron: '20 /3 * * *' workflow_dispatch: jobs: update-gh-pages: diff --git a/build.sh b/build.sh index b27dbf565..6c0336ba5 100755 --- a/build.sh +++ b/build.sh @@ -12,7 +12,7 @@ cd results-analysis-cache.git/ git fetch --all --tags cd ../ -TO_DATE=$(date -d "yesterday 13:00" '+%Y-%m-%d') +TO_DATE=$(date -d "tomorrow 13:00" '+%Y-%m-%d') update_bsf_csv() { local OUTPUT="${1}" From c066045c2c6ceaa532fe82a2b2541dd3cd03b715 Mon Sep 17 00:00:00 2001 From: Sam Sneddon Date: Fri, 8 Apr 2022 23:38:41 +0100 Subject: [PATCH 2/2] Update update_gh_pages.yml --- .github/workflows/update_gh_pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_gh_pages.yml b/.github/workflows/update_gh_pages.yml index 408afa25b..61728933a 100644 --- a/.github/workflows/update_gh_pages.yml +++ b/.github/workflows/update_gh_pages.yml @@ -2,7 +2,7 @@ name: Update gh-pages on: # Trigger on every three hours, or manually. schedule: - - cron: '20 /3 * * *' + - cron: '20 */3 * * *' workflow_dispatch: jobs: update-gh-pages: