Skip to main content

This version of GitHub Enterprise Server will be discontinued on 2026-03-17. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Creating workflow templates for your organization

Learn how you can create workflow templates to help people in your team add new workflows more easily.

Note

GitHub Enterprise Server users should use self-hosted runners. GitHub-hosted runners are not supported.

Creating workflow templates

This procedure demonstrates how to create a workflow template and metadata file. The metadata file describes how the workflow templates will be presented to users when they are creating a new workflow.

  1. If it doesn't already exist, create a new repository named .github in your organization.
  2. Create a directory named workflow-templates.
  3. Create your new workflow file inside the workflow-templates directory.
  4. Create a metadata file inside the workflow-templates directory.
  5. To add another workflow template, add your files to the same workflow-templates directory.

Next steps