-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
38 lines (38 loc) · 1.37 KB
/
action.yaml
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
name: 'GitHub Users'
description: 'GitHub Action that creates list of enterprise users or allows automatic invitation of users'
author: [email protected]
inputs:
github-token:
description: 'The GitHub Token to use for authentication, it needs permissions to read member in source-org and invite them to the target-org'
required: true
enterprise:
description: 'The GitHub Enterprise to query for members'
required: true
source-organization:
description: 'The source organization name to query for members'
required: true
target-organization:
description: 'The target organization name to invite members to'
required: true
dry-run:
description: 'If true, the action will only print the list of users that would be invited'
required: false
default: 'false'
verbose:
description: 'Verbosity, 0=error, 1=warn, 2=info, 3=debug'
required: false
default: '2'
team:
description: 'The team (slug) to invite members to'
required: true
runs:
using: 'docker'
image: 'docker://ghcr.io/prodyna/invite-to-org:v1.0'
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
ENTERPRISE: ${{ inputs.enterprise }}
SOURCE_ORGANIZATION: ${{ inputs.source-organization }}
TARGET_ORGANIZATION: ${{ inputs.target-organization }}
DRY_RUN: ${{ inputs.dry-run }}
VERBOSE: ${{ inputs.verbose }}
TEAM: ${{ inputs.team }}