Genera QMD #2
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: Genera QMD | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "script/risorse/lista-pubblicazioni.csv" | |
| - "pubblicazioni/**/risorse/*_resized.png" | |
| workflow_dispatch: | |
| jobs: | |
| genera: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Genera QMD | |
| run: python3 script/lista.py | |
| - name: Commit QMD generati | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add pubblicazioni/**/*.qmd pubblicazioni/**/*_resized.png | |
| git diff --staged --quiet || git commit -m "genera qmd" && git push |