Skip to content

ci: replace cross-workflow dispatch with three self-contained workflows#76

Merged
nesanders merged 1 commit into
mainfrom
fix/three-workflows
Jun 3, 2026
Merged

ci: replace cross-workflow dispatch with three self-contained workflows#76
nesanders merged 1 commit into
mainfrom
fix/three-workflows

Conversation

@nesanders

Copy link
Copy Markdown
Owner

Problem

GITHUB_TOKEN cannot trigger workflow_dispatch events on other workflows — a hard GitHub security restriction regardless of actions: write permission. This caused the weekly data run to fail with HTTP 403 when trying to dispatch update-charts.yml.

Solution

Three fully self-contained workflows — no cross-dispatch:

Workflow Trigger What it does
Weekly Update (update-weekly.yml) Scheduled Mon 06:00 UTC + manual Full data fetch → validate → assemble DB → generate charts → one PR
Update Data Only (update-data.yml) Manual only Data fetch → validate → assemble DB → PR with docs/data/
Update Charts Only (update-charts.yml) Manual only Downloads DB from GCS → generate charts → PR with docs/_includes/charts/

Note: lobbying pipeline scripts (get_MA_lobbying.py etc.) are omitted from the weekly workflow here — they will be added when feat/ma-lobbying-data is merged.

🤖 Generated with Claude Code

GITHUB_TOKEN cannot trigger workflow_dispatch events on other workflows
(GitHub security restriction, regardless of actions:write permission).

New structure — no cross-dispatch, each workflow is fully self-contained:
- update-weekly.yml: scheduled Monday 06:00 UTC; runs full data fetch +
  chart generation in sequence; commits data/ + charts/ in one PR
- update-data.yml: manual only; data fetch + DB assembly; commits data/
- update-charts.yml: manual only; downloads DB from GCS, regenerates
  dashboard charts; commits charts/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nesanders nesanders merged commit 6a58766 into main Jun 3, 2026
6 checks passed
@nesanders nesanders deleted the fix/three-workflows branch June 3, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant