Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriskacerguis/create-repo
Create GitHub Repo and Assign Team
https://github.com/chriskacerguis/create-repo
Last synced: about 1 month ago
JSON representation
Create GitHub Repo and Assign Team
- Host: GitHub
- URL: https://github.com/chriskacerguis/create-repo
- Owner: chriskacerguis
- License: mit
- Created: 2024-06-21T12:49:02.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T12:55:25.000Z (7 months ago)
- Last Synced: 2024-11-27T04:32:26.005Z (about 1 month ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Create GitHub Repo and Assign Team
A GitHub Action to create a repository and assign a team with write access.
## Inputs
### `repo`
**Required** The name of the repository to create.
### `team`
**Required** The slug of the team to add with write access.
## Outputs
No outputs.
## Example Usage
```yaml
name: Create GitHub Repo and Assign Teamon:
workflow_dispatch:
inputs:
repo:
description: 'Repository name'
required: true
type: string
default: 'my-new-repo'
team:
description: 'Team slug'
required: true
type: string
default: 'my-team'jobs:
create-repo:
runs-on: ubuntu-latest
steps:
- name: Use Create Repo Action
uses: your-username/your-repo@v1
with:
repo: ${{ github.event.inputs.repo }}
team: ${{ github.event.inputs.team }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_NAME: ${{ secrets.ORG_NAME }}