Skip to content

Merge pull request #324 from DemocracyClub/fix/SLK-scraper #99

Merge pull request #324 from DemocracyClub/fix/SLK-scraper

Merge pull request #324 from DemocracyClub/fix/SLK-scraper #99

Workflow file for this run

name: Build and Save CMS Metadata CSV
on:
push:
branches:
- master
jobs:
build-csv:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Generate CMS metadata CSV
run: |
uv run manage.py metadata list-cms --csv > cms-metadata.csv
- name: Upload CSV artifact
uses: actions/upload-artifact@v4
with:
name: cms-metadata
path: cms-metadata.csv
retention-days: 90
- name: Trigger dashboard rebuild
if: success()
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DASHBOARD_DISPATCH_TOKEN }}
repository: DemocracyClub/lgsf-dashboard
event-type: csv-updated