From 795546db3ea7ae069f6a5985a23bc757eda6e441 Mon Sep 17 00:00:00 2001 From: Jennifer Chang Date: Fri, 5 Apr 2024 08:06:00 -0700 Subject: [PATCH] ingest-to-phylo: Add schedule Copied daily schedule of mpox ingest https://github.com/nextstrain/mpox/blob/e439235ff1c1d66e7285b774e9536e2896d9cd2f/.github/workflows/fetch-and-ingest.yaml#L4-L21 Daily runs seem fine since the ingest workflow currently takes less than 2 minutes to complete and it will not trigger the phylogenetic workflow if there's no new data. We can bring this down to once a week if it seems like overkill. Copied commit from Zika PR #52 https://github.com/nextstrain/zika/pull/52/commits/77ca1d423ca753887a39dadf6db46e03c575a41e --- .github/workflows/ingest-to-phylogenetic.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ingest-to-phylogenetic.yaml b/.github/workflows/ingest-to-phylogenetic.yaml index 7d537a6f..7c0b4f85 100644 --- a/.github/workflows/ingest-to-phylogenetic.yaml +++ b/.github/workflows/ingest-to-phylogenetic.yaml @@ -10,6 +10,25 @@ defaults: shell: bash --noprofile --norc -eo pipefail {0} on: + schedule: + # Note times are in UTC, which is 1 or 2 hours behind CET depending on daylight savings. + # + # Note the actual runs might be late. + # Numerous people were confused, about that, including me: + # - https://g.nite07.orgmunity/t/scheduled-action-running-consistently-late/138025/11 + # - https://github.com/github/docs/issues/3059 + # + # Note, '*' is a special character in YAML, so you have to quote this string. + # + # Docs: + # - https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule + # + # Tool that deciphers this particular format of crontab string: + # - https://crontab.guru/ + # + # Runs at 4pm UTC (12pm EDT) since curation by NCBI happens on the East Coast. + - cron: '0 16 * * *' + workflow_dispatch: inputs: ingest_image: