Skip to content

Commit

Permalink
Merge pull request #12 from reichlab/bsweger/hotfix-cladetime
Browse files Browse the repository at this point in the history
Bsweger/hotfix cladetime
  • Loading branch information
bsweger authored Dec 2, 2024
2 parents 5f753d6 + 27ba18f commit dd7129f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/get-covid-clade-counts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
schedule:
- cron: "37 04 * * 1" # 4:37 AM UTC every Mon
workflow_dispatch:
inputs:
as_of:
description: "Get clade counts as of 11:59 UTC on this date (YYYY-MM-DD)"
required: true
default: $(date +'%Y-%m-%d')

env:
# Hubverse AWS account number
Expand All @@ -19,6 +24,17 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Get --as-of date 🕰️
run: |
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
AS_OF=${{ inputs.as_of }}
else
AS_OF=$(date +'%Y-%m-%d')
fi
echo "as_of date is set to $AS_OF"
echo "AS_OF=$AS_OF" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

Expand All @@ -37,7 +53,7 @@ jobs:

- name: Get covid clade counts
run: |
uv run get_covid_clade_counts.py --as-of=$(date +'%Y-%m-%d')
uv run get_covid_clade_counts.py --as-of="$AS_OF"
- name: Install rclone
run: |
Expand Down
2 changes: 1 addition & 1 deletion get_covid_clade_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# requires-python = "==3.12"
# dependencies = [
# "click",
# "cladetime@git+https://github.com/reichlab/cladetime"
# "cladetime@git+https://github.com/reichlab/cladetime@elr/use_metadata_url"
# ]
# ///

Expand Down

0 comments on commit dd7129f

Please sign in to comment.