Add dates of newest designations #16955
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add dates of newest designations | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
schedule: | |
- cron: "25 * * * *" | |
jobs: | |
add-dates: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# TODO: Only run if there's been a commit to pango-designation | |
# Use simple text file to store date of most recent commit | |
- name: Checkout pango-designation | |
uses: actions/checkout@v3 | |
with: | |
repository: cov-lineages/pango-designation | |
path: "./pango-designation" | |
fetch-depth: 28 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: "pip" # caching pip dependencies | |
- run: pip install -r requirements.txt | |
# For debugging | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
# timeout-minutes: 15 | |
- run: python get_designation_date.py --pango-path ./pango-designation | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update designation dates | |
commit_options: "--no-verify" |