Update Issue Template Model List #288
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: 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 |