fix(ci): wait for quality before deploy #156
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/vimdoc-language-server!156
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/experiment-unnamed-reusable-deploy"
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?
Problem
Forgejo commit status contexts always include the workflow name. Reusable workflow jobs inherit the caller workflow name in commit statuses, and omitting
name:leaves an empty prefix such as/ Format. That prevents a reusable-workflow-only solution from producing mixed main contexts.Solution
Run
qualityas its own pull-request and main-push workflow, producingquality / Format,quality / Lint, andquality / Test. Run deploy as a separatedeployworkflow with oneDeployjob. Before build/deploy, that job polls the Forgejo commit status API for the same SHA and waits until the three push quality statuses are successful; failures or timeout stop deployment.Expected main contexts
quality / Format (push)quality / Lint (push)quality / Test (push)deploy / Deploy (push)128d65e28214e97ee8d114e97ee8d10949e8c9d9test(ci): omit workflow names in actionsto fix(ci): wait for quality before deploy0949e8c9d9ae915ed620