Testing PDF Change #3
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: Convert PDF to PNG | |
| on: | |
| push: | |
| paths: | |
| - 'resume.pdf' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| convert: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install poppler-utils | |
| run: sudo apt-get update && sudo apt-get install -y poppler-utils | |
| - name: Convert PDF to PNG | |
| run: pdftoppm -png -singlefile -r 150 resume.pdf resume | |
| - name: Commit PNG | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add resume.png | |
| git diff --staged --quiet || git commit -m "Update resume.png" | |
| git push |