-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
54 lines (50 loc) · 1.56 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: "PlayEveryWare Unity Builder"
description: "Builds a Unity project"
inputs:
token:
description: Github access token
required: true
pew-org-token:
description: PlayEveryWare Organization access token
required: true
unity-email:
required: true
unity-password:
required: true
unity-serial:
required: true
google-upload-credentials:
required: true
google-upload-folder-id:
required: true
runs:
using: "composite"
steps:
- name: Ensure access token is provided
if: ${{ inputs.token == '' }}
shell: powershell
run: |
echo "::error::No TOKEN (token) passed to build action"
exit 1
- name: Ensure organization access token is provided
if: ${{ inputs.pew-org-token == '' }}
shell: powersheel
run: |
echo "::error::No Organization token (pew-build-token) passed to build action"
exit 1
- name: Get the private actions repository
uses: actions/checkout@v3
with:
repository: PlayEveryWare/unity-build-private
token: ${{ inputs.pew-org-token }}
path: unity-build-private
set-safe-directory: false
- uses: ./unity-build-private
with:
token: ${{ inputs.token }}
pew-org-token: ${{ inputs.pew-org-token }}
unity-email: ${{ inputs.unity-email }}
unity-password: ${{ inputs.unity-password }}
unity-serial: ${{ inputs.unity-serial }}
google-upload-credentials: ${{ inputs.google-upload-credentials}}
google-upload-folder-id: ${{ inputs.google-upload-folder-id }}