feat: github action auto render

This commit is contained in:
2026-02-20 09:25:01 +07:00
parent 29cdc965c7
commit b0bb0f5fc7
+36
View File
@@ -0,0 +1,36 @@
name: RenderCV
on:
push:
paths:
- "miti99.yml"
pull_request:
paths:
- "miti99.yml"
workflow_dispatch:
jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install RenderCV
run: |
python -m pip install --upgrade pip
pip install rendercv
- name: Render CV
run: rendercv render miti99.yml
- name: Commit and push PDF
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add miti99.pdf
git diff --staged --quiet || git commit -m "chore: auto-render CV PDF"
git push