faster #72
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: Build and Commit Resume PDF | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'data/resume.tex' | |
| - 'Dockerfile' | |
| - '.github/workflows/compile.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build_and_commit_pdf: | |
| name: Build and Commit Resume PDF | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Compile Resume PDF | |
| uses: ./ | |
| - name: Commit and Push PDF | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Actions" | |
| git add out/resume.pdf | |
| if git diff --staged --quiet; then | |
| echo "No changes to commit." | |
| else | |
| git commit -m "Automated build of resume.pdf" | |
| git push | |
| fi |