stairwaytowonderland/Repository Create
Creates a GitHub organization repository with overrideable pre-defined settings and branch rulesets.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token with repo and admin:org scopes. Use a Personal Access Token or a GitHub App installation token. Note: the default GITHUB_TOKEN does not have admin:org scope and cannot create organization repositories — supply a token with the required scopes. | — | ${{ github.token }} |
| org | Target GitHub organization. | yes | — |
| name | Repository name to create. | yes | — |
| repo-config | Path to a JSON settings/rulesets override file, relative to the workspace root (GITHUB_WORKSPACE). Omit to use built-in defaults. | no | "" |
| template-owner | Owner of the template repository. Requires template-repo to also be set. Takes precedence over any template configured in repo-config. | no | "" |
| template-repo | Name of the template repository. Requires template-owner to also be set. The template repository must have "Template repository" enabled in its settings. | no | "" |
| visibility | Repository visibility. One of: private, internal, public. 'internal' requires GitHub Enterprise Cloud (GHEC). Overrides the value in repo-config if set. | no | public |
| include-all-branches | When creating from a template, copy all branches instead of only the default branch. | no | false |
| job-summary | Write a job summary to the GitHub Actions step summary. | no | true |
| create-from-template-retry-delay | Time in milliseconds to wait before retrying repository creation if a template is being used and the API returns a 422 error indicating the template is still being processed. Default: 3000 (3 seconds). | no | 3000 |
| create-from-template-max-retries | Maximum number of retries if a template is being used and the API returns a 422 error indicating the template is still being processed. Default: 10. | no | 10 |
| replace-git-protocol-links | Optional flag to also replace Git protocol links (e.g. git://) in the README. | no | "" |
| create-labels | Optional flag to create a default set of issue labels in the new repository. | no | "" |
| create-issues | Optional flag to create a default issue in the new repository. | no | "" |
Outputs
| name | description |
|---|---|
| repo-id | Numeric ID of the created repository. |
| repo-url | HTML URL of the created repository (e.g. https://github.com/org/repo). |
| repo-full-name | Full name of the created repository (e.g. org/repo). |
| repo-name | Name of the created repository (e.g. repo). |
| repo-owner-id | Numeric ID of the repository owner (e.g. organization or user ID). |
| repo-owner-name | Name of the repository owner (e.g. organization or user name). |
| repo-owner-url | URL of the repository owner (e.g. https://github.com/org). |