Skip to content

Merge branches 'main' and 'main' of https://github.com/matteobaccan/C… #44

Merge branches 'main' and 'main' of https://github.com/matteobaccan/C…

Merge branches 'main' and 'main' of https://github.com/matteobaccan/C… #44

Workflow file for this run

name: Genera PDF
on:
push:
branches: [ main ]
paths:
- 'slide/*.*'
- '.github/workflows/generatepdf.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: generate pdf
run: |
cd slide
cp Corso_AI.md Corso_AI-backup.md
sed -i "s/%date%/$(date +'%Y-%m-%d')/g" Corso_AI.md
sed -i "s/%time%/$(date +'%H:%M')/g" Corso_AI.md
npx @marp-team/marp-cli@latest Corso_AI.md --pdf --allow-local-files
rm Corso_AI.md
mv Corso_AI-backup.md Corso_AI.md
- name: commit & push
run: |
git add -A
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "update slides"
git push