publish.yaml / publish (push) Successful in 4s
Enforces which source branches may merge into which target branches, configured via a rules input (one target:allowed,allowed per line, glob-capable). Empty rules (default) skips enforcement entirely, so repos can adopt it without immediately gating on rules they have not configured. Extracted for reuse across repos moving to a gitflow-style branch promotion model, starting with stat-tackler-api.
22 lines
759 B
Markdown
22 lines
759 B
Markdown
# Promotion Gate
|
|
|
|
<!-- action-docs-description source="action.yml" -->
|
|
## Description
|
|
|
|
Enforce which source branches may merge into which target branches
|
|
<!-- action-docs-description source="action.yml" -->
|
|
|
|
<!-- action-docs-inputs source="action.yml" -->
|
|
## Inputs
|
|
|
|
| name | description | required | default |
|
|
| --- | --- | --- | --- |
|
|
| `rules` | <p>One rule per line: "target:allowed1,allowed2,…". Targets not listed are unrestricted. Allowed entries may use a trailing glob, e.g. <code>hotfix-*</code>. Leave empty (default) to skip entirely.</p> | `false` | `""` |
|
|
<!-- action-docs-inputs source="action.yml" -->
|
|
|
|
<!-- action-docs-runs source="action.yml" -->
|
|
## Runs
|
|
|
|
This action is a `composite` action.
|
|
<!-- action-docs-runs source="action.yml" -->
|