generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (44 loc) · 1.5 KB
/
manual.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
35
36
37
38
39
40
41
42
43
44
45
46
name: manual
on: # Only trigger on manual input
workflow_dispatch:
inputs:
owner:
description: 'Owner of GitHub repo to be forked'
required: true
repo:
description: 'GitHub repo to be forked'
required: true
org:
description: 'GitHub org to fork the repo into'
required: true
default: wayfair-contribs
user:
description: 'GitHub user requesting the fork'
required: true
checkUser:
description: 'Enforce organization membership for GitHub user?'
required: true
default: true
promoteUser:
description: 'Promote GitHub user to admin of the forked repo?'
required: true
default: false
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wayfair-incubator/[email protected]
name: "⑂ fork request"
with:
# Enforce current list of OSPO-approved licenses
licenseAllowlist: "0bsd\napache-2.0\nbsd-2-clause\nbsd-3-clause\nmit"
# Using API token for lhasa-ospo service account
token: ${{ secrets.OSPO_API_TOKEN }}
# Manual user inputs from workflow dispatch
repo: ${{ github.event.inputs.repo }}
owner: ${{ github.event.inputs.owner }}
org: ${{ github.event.inputs.org }}
user: ${{ github.event.inputs.user }}
checkUser: ${{ github.event.inputs.checkUser }}
promoteUser: ${{ github.event.inputs.promoteUser }}