diff --git a/.github/workflows/puppeteer.yml b/.github/workflows/puppeteer.yml index d0194a0..9e7ac6a 100644 --- a/.github/workflows/puppeteer.yml +++ b/.github/workflows/puppeteer.yml @@ -24,5 +24,15 @@ jobs: - name: Remove old cv.pdf run: rm -f public/cv.pdf - # - name: Run Puppeteer script - # run: deno run -A scripts/puppeteer.js + - name: Run Puppeteer script + run: deno run -A scripts/puppeteer.js + + - name: Commit and push changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add public/cv.pdf + git commit -m "Remove old cv.pdf and update with new generated file" + git push