Skip to content

chore(cv): tailor cv wording for Beetween - Product Manager (H/F) #20

chore(cv): tailor cv wording for Beetween - Product Manager (H/F)

chore(cv): tailor cv wording for Beetween - Product Manager (H/F) #20

name: Build and Commit PDFs
on:
push:
branches:
- '**'
- '!dependabot/**'
- '!renovate/**'
paths-ignore:
- 'dist/pdf/**'
permissions:
contents: write
jobs:
build-pdf:
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build PDFs
run: npm run build:pdf
env:
NODE_ENV: production
HIDE_ONLINE_CV_LINK: 'true'
FORCE_FLAT_PDF_OUTPUT: 'true'
- name: Commit generated PDFs
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist/pdf
if git diff --cached --quiet; then
echo "No PDF changes to commit"
exit 0
fi
git commit -m "chore(pdf): update generated PDFs [skip ci]"
git push