Add latest papers on benchmarks, data synthesis, issue resolution, pr… #5
This file contains hidden or 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: Render Papers | |
on: | |
push: | |
paths: | |
- "data/papers_*.yaml" | |
- "scripts/render_papers.py" | |
- "README.md" | |
workflow_dispatch: | |
jobs: | |
render: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- run: pip install pyyaml | |
- run: python scripts/render_papers.py | |
- name: Commit changes | |
run: | | |
if [[ -n "$(git status --porcelain)" ]]; then | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add README.md | |
git commit -m "chore: render papers blocks from data/*" | |
git push | |
else | |
echo "No changes." | |
fi |