How to Publish Org Starter Workflows in GitHub
Starter workflows live in the org .github repo and appear as suggestions when any repo opens the Actions tab.
Put a workflow file plus a .properties.json under workflow-templates/ in your org-level .github repository. GitHub surfaces it as a one-click starter for every repo in the org.
Steps
- Create (or open) the org-level repository literally named
.github. - Add
workflow-templates/node-ci.ymlwith your pipeline. - Add
workflow-templates/node-ci.properties.jsondescribing it. - Use the
$default-branchplaceholder so the copy targets the new repo default branch.
Template properties
node-ci.properties.json
{
"name": "Node CI (paved road)",
"description": "Lint, test, and build for Node services",
"iconName": "example",
"categories": ["Node", "Continuous integration"],
"filePatterns": ["package.json$"]
}Gotchas
- The template file and its
.properties.jsonmust share the same base name. filePatternsdecides which repos see the suggestion; match on a marker file likepackage.json.
Related guides
How to Build a Golden Path CI Workflow for Your PlatformDefine a paved-road CI workflow that every team gets by default, wrapping build, test, and scan into one opin…
How to Scaffold a New Service With CI PreconfiguredGenerate a new service from a template using cookiecutter or copier so the repo ships with the paved-road CI…