-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
64 lines (64 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
55
56
57
58
59
60
61
62
63
64
name: 'PLTcloud Action'
# SPDX-License-Identifier: Apache-2.0
description: 'Deploy Firmware to PLTcloud'
author: bcdevices
branding:
color: blue
icon: upload-cloud
inputs:
API_TOKEN:
description: 'PLTcloud api token'
required: true
PROJECT_UUID:
description: 'PLTcloud project uuid'
required: true
VERBOSE:
description: 'Verbose output'
required: false
default: 'false'
FILES:
description: "Files"
required: true
VERSION:
description: "Version"
required: false
default: ${{ github.ref }}
DEPLOYMENT_GROUP_UUID:
description: "Deployment Group UUID"
required: false
AUTO_DEPLOY:
description: "Auto deploy release to PLT"
required: false
default: 'false'
CHECK_NAME:
description: 'GitHub check name'
default: "PLTcloud"
required: false
REPOSITORY:
description: 'Repository'
required: false
default: ${{ github.repository }}
REPOSITORY_OWNER:
description: 'Repository owner'
required: false
default: ${{ github.repository_owner }}
SHA:
description: 'SHA'
required: false
default: ${{ github.sha }}
runs:
using: 'docker'
image: 'Dockerfile'
args:
# checkrun arguments
- -r=${{ inputs.REPOSITORY }}
- -o=${{ inputs.REPOSITORY_OWNER }}
- -s=${{ inputs.SHA }}
- -n=${{ inputs.CHECK_NAME }}
- -p=${{ inputs.PROJECT_UUID }}
- -t=${{ inputs.API_TOKEN }}
- -vvv=${{ inputs.VERBOSE }}
- -v=${{ inputs.VERSION }}
- -f=${{ inputs.FILES }}
- -d=${{ inputs.DEPLOYMENT_GROUP_UUID }}
- -a=${{ inputs.AUTO_DEPLOY }}