-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.22 KB
/
update-issue-template-model-list.yml
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
name: Update Issue Template Model List
on:
workflow_dispatch:
schedule:
# Runs every day at 3:43 AM
- cron: '43 3 * * *'
jobs:
update-model-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install prerequisites
run: |
pip3 install requests
pip3 install ruamel.yaml
- name: Update issue template model list
run: python .github/scripts/update_model_request_template.py https://ersilia-model-hub.s3.eu-central-1.amazonaws.com/models.json
- run: cat .github/ISSUE_TEMPLATE/model-inference-run.yml
- name: Commit changes
run: |
git config --local user.email "noreply@github.com"
git config --local user.name "GitHub Actions"
git add .github/ISSUE_TEMPLATE/model-inference-run.yml
# Check if there are staged changes
if git diff --cached --quiet; then
echo "No staged changes to commit."
else
echo "Staged changes detected. Committing..."
git commit -m "Update model list in issue template"
git push
fi