ignoring json in source code #4
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: Weekly site report | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| push: | |
| branches: [master] | |
| jobs: | |
| generate-report: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Generate report | |
| run: python -m src | |
| - name: Commit and push report to repo | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add index.html | |
| git diff --staged --quiet || git commit -m "cron: weekly site report" | |
| git push | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: site-report-${{ github.run_number }} | |
| path: | | |
| index.html | |
| crawl_results.csv | |
| edges.csv | |
| nodes.csv | |
| site_graph.svg |