forked from brad/brand-guidelines
CI Failure: fix: use FORGEJO_TOKEN for CI git auth #5
Labels
No labels
lit-review
research-request
source-needed
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
commune/brand#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI Failure: Build Workflow Failed on Main
Run URL: https://git.brads.house/commune/brand/actions/runs/4
Commit:
207c0cb33aWorkflow: Build brand outputs (build.yml)
Branch: main
Attempts: 3/3
Error Summary
The workflow failed when trying to commit generated files:
Root Cause Analysis
The workflow (build.yml) attempts to add assets/swatches/ to git:
However, when MCP_TOKEN is not configured (as is the case for this repo), the build script skips swatch generation:
The assets/swatches/ directory is never created, so
git add assets/swatches/fails with exit code 128, causing the entire workflow to fail.What Succeeded
Resolution Required
Update .forgejo/workflows/build.yml to conditionally add directories that exist:
This pattern ensures
git addonly attempts to add directories that actually exist.Severity
LOW - Simple workflow fix, no changes needed to brand configuration or secrets. The fix addresses a missing conditional check for optional swatch generation.
Update: A fix commit (
59ced3f) 'fix: handle missing assets/swatches/ in CI commit step' has been pushed and is currently running in run #5. The fix conditionally adds the swatches directory only if it exists.fixing upstream