Skip to content

fix: add frontend build step to generate-contacts workflow#2

Merged
dbehnke merged 3 commits intomainfrom
fix/generatefilesci
Mar 9, 2026
Merged

fix: add frontend build step to generate-contacts workflow#2
dbehnke merged 3 commits intomainfrom
fix/generatefilesci

Conversation

@dbehnke
Copy link
Copy Markdown
Owner

@dbehnke dbehnke commented Mar 9, 2026

Summary

Fixes the failed GitHub Actions workflow and changes it to create PRs instead of direct commits.

Problem

The generate-contacts.yml workflow was failing with:

main.go:22:12: pattern frontend/dist: no matching files found

This happened because main.go uses //go:embed frontend/dist to embed frontend static files, but the frontend/dist directory didn't exist in CI.

Changes

1. Added Frontend Build Step

  • Installs Bun runtime
  • Builds frontend to create frontend/dist before Go build

2. PR-Based Workflow (Instead of Direct Commit)

  • Uses peter-evans/create-pull-request@v6 action
  • Creates a new branch auto/update-contacts-{run_id}
  • Opens PR with review checklist for generated contacts
  • Auto-deletes branch after merge

3. Added Required Permissions

Benefits

  • ✅ Reviewable generated files before merging
  • ✅ Cleaner git history on main
  • ✅ Easier to revert bad generations
  • ✅ Traceable changes with PR numbers
  • ✅ No pollution of main branch with auto-commits

Testing

After merging, you can test by:

  1. Manually triggering the workflow, or
  2. Pushing a change to any filters/*.csv file on main

@dbehnke dbehnke merged commit deaabb1 into main Mar 9, 2026
3 checks passed
@dbehnke dbehnke deleted the fix/generatefilesci branch March 9, 2026 00:16
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