Skip to content

Commit ca32cb4

Browse files
committed
add workflow genera-qmd
1 parent 75bd6c9 commit ca32cb4

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/genera-qmd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Genera QMD
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "script/risorse/lista-pubblicazioni.csv"
8+
- "pubblicazioni/**/risorse/*_resized.png"
9+
workflow_dispatch:
10+
11+
jobs:
12+
genera:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Genera QMD
25+
run: python3 script/lista.py
26+
27+
- name: Commit QMD generati
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
31+
git add pubblicazioni/**/*.qmd pubblicazioni/**/*_resized.png
32+
git diff --staged --quiet || git commit -m "genera qmd" && git push

0 commit comments

Comments
 (0)