Skip to content

ignoring json in source code #4

ignoring json in source code

ignoring json in source code #4

Workflow file for this run

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