Skip to content

re: revert minor changes #17

re: revert minor changes

re: revert minor changes #17

Workflow file for this run

name: Resume Builder
on:
push:
branches:
- main
paths:
- "example.py"
- ".github/workflows/resume.yml"
- "src/resume/utils.py"
- "src/template/*.*"
jobs:
generate-resume:
name: Generate Resume
if: github.repository == 'cybardev/resume'
runs-on: ubuntu-latest
steps:
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: pandoc wkhtmltopdf poppler-utils
version: 1.0
- name: Checkout repository
uses: actions/checkout@v4
- name: Run resume generation script
run: |
cd ./src/
python3 -m resume.builder ../example.py -o ../assets
cd ../
- name: Check for resume changes
id: check_updates
run: |
FILE_CHANGED=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} ./assets/Resume_*.md)
echo "changed=${FILE_CHANGED}" >> "${GITHUB_OUTPUT}"
- name: Commit changes
# FIXME: if: endsWith(steps.check_updates.outputs.changed, '.md')
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git commit -a -m "pipeline: update resume"
- name: Upload resume files
# FIXME: if: endsWith(steps.check_updates.outputs.changed, '.md')
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}