mirror of
https://github.com/tiennm99/cv.git
synced 2026-08-14 02:22:28 +00:00
feat: github action auto render
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user