From b0bb0f5fc739d67766be0b1fc5a907e4f23831ee Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 20 Feb 2026 09:25:01 +0700 Subject: [PATCH] feat: github action auto render --- .github/workflows/rendercv.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/rendercv.yml diff --git a/.github/workflows/rendercv.yml b/.github/workflows/rendercv.yml new file mode 100644 index 0000000..0fdb88a --- /dev/null +++ b/.github/workflows/rendercv.yml @@ -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