Generate SVGs #10
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: Generate SVGs | |
| on: | |
| schedule: | |
| - cron: "0 * * * *" # toutes les heures | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install deps | |
| run: | | |
| pip install requests | |
| pip install common | |
| pip install github_data | |
| - name: Generate SVGs | |
| run: python .github/generated_svgs/generate_issue_cards.py | |
| - name: Commit & push | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git add .github/generated_svgs | |
| git commit -m "Update SVGs" || echo "No changes" | |
| git push |