-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
34 lines (34 loc) · 991 Bytes
/
action.yml
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
name: 'Team Membership Checker'
description: 'Check if an user is a member of an organization team'
inputs:
token:
description: 'Personal Access Token with the `read:org` permission.'
required: false
default: ${{ github.token }}
team:
description: 'The team to check for.'
required: true
default: 'team'
comment:
description: 'A comment to post if the user is not part of the team.'
required: false
default: null
organization:
description: 'The organization of the team to check for. Defaults to the context organization.'
required: false
default: ${{ github.repository_owner }}
exit:
description: 'If the action should exit if the user is not part of the team.'
required: false
default: true
outputs:
teams:
description: 'The actual teams of the user'
permitted:
description: 'Whether a user is part of the team or not'
runs:
using: 'node16'
main: 'dist/index.js'
branding:
color: 'red'
icon: 'lock'