-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.9 KB
/
create_github_teams.yml
File metadata and controls
56 lines (50 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: create-github-teams
on:
workflow_dispatch:
inputs:
organization:
type: string
default: 'devwithkrishna'
description: 'The GitHub organization where the team will be created.'
required: true
team_name:
description: "The name of the github team."
type: string
required: true
team_description:
description: "Description for the new Github Team"
type: string
required: false
team_permission:
description: "Deprecated. The permission that new repositories will be added to the team with when none is specified.Can be one of: pull, push"
type: choice
options:
- pull
- push
team_notification_setting:
description: "The notification setting the team has chosen. The options are notifications_enabled, notifications_disabled"
type: choice
options:
- notifications_enabled
- notifications_disabled
team_privacy:
description: "The level of privacy this team should have. The options are: secret, closed"
type: choice
options:
- secret
- closed
team_owners:
description: "List GitHub IDs for organization members who will become team maintainers"
default: "githubofkrishnadhas"
run-name: ${{ github.actor }} creating ${{inputs.team_name}}
jobs:
create-github-team:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: execute the program
env:
GH_TOKEN: ${{ secrets.DEVWITHKRISHNA_PERSONAL_ACCESS_TOKEN }}
run: |
bash create_github_teams.sh "${{ inputs.organization }}" "${{ inputs.team_name }}" "${{ inputs.team_description }}" "${{inputs.team_permission }}" "${{inputs.team_notification_setting }}" "${{ inputs.team_privacy }}" "${{ inputs.team_owners }}"