generated from hubverse-org/hubTemplate
-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (40 loc) · 1.26 KB
/
create-modeling-round.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Create new modeling round
on:
push:
paths:
- auxiliary-data/modeled-clades/*.txt
- .github/workflows/create-modeling-round.yaml
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
create-modeling-round:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install uv 🌈
uses: astral-sh/setup-uv@v2
with:
version: "0.4.9"
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version-file: "src/.python-version"
- name: Create clade list 🦠
run: |
uv run src/get_clades_to_model.py
- name: Add new round to hub tasks.json 📝
run: |
echo "Not implemented yet"
- name: Create PR for new modeling round 🚀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout -b new_round_$(date +%Y-%m-%d-%H%M%S)
git push -u origin new_round_$(date +%Y-%m-%d-%H%M%S)
gh pr create \
--base main \
--title "Add new round $(date +%Y-%m-%d-%H%M%S)" \
--body "This PR was created via GitHub Actions: generate clade list and new round config."