This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
60 lines (57 loc) · 2.26 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
name: 'Skyline DataMiner Deploy Action'
description: 'The action builds an artifact from your solution and deploys it to your cloud connected DataMiner System.'
branding:
icon: 'download-cloud'
color: 'gray-dark'
env:
working-directory: ./GitHubAction/Package.Builder
inputs:
api-key: # id of input
description: 'The API-key generated in the DCP Admin app as authentication for a certain DataMiner System, saved in a GitHub secret'
required: true
solution-path:
description: 'The path to the .sln file of the solution. Atm only DataMiner Automation Script solutions are supported. E.g ./Example/AutomationScript.sln. Required for stages: All and Upload.'
required: true
artifact-name:
description: 'The chosen name of the artifact. E.g. MyPackageName. Required for stages: All, Upload and Deploy.'
required: false
version:
description: 'The version number for the artifact. Format A.B.C for a stable release or A.B.C-text for a pre-release. E.g. 1.0.1. Required for stages Upload and All if no build number was provided instead.'
required: false
timeout:
description: 'The maximum time spend on waiting for the deployment to finish in seconds. E.g. 900.'
required: false
default: "900"
stage:
description: 'The specific stage to run in this action. Possible values are: All, Upload, and Deploy. All will run all 3 stages consecutively.'
required: false
default: "All"
artifact-id:
description: 'The artifact Id of the artifact that you would like to deploy'
required: false
build-number:
description: 'The build number of a workflow run. Only required for a development run. Required for stages Upload and All if no version was provided instead.'
required: false
outputs:
artifact-id:
description: 'The artifact Id of the artifact has been uploaded'
runs:
using: 'docker'
image: '../../Dockerfile'
args:
- --api-key
- ${{ inputs.api-key }}
- --solution-path
- ${{ inputs.solution-path }}
- --artifact-name
- ${{ inputs.artifact-name }}
- --version
- ${{ inputs.version }}
- --timeout
- ${{ inputs.timeout }}
- --stage
- ${{ inputs.stage }}
- --artifact-id
- ${{ inputs.artifact-id }}
- --build-number
- ${{ inputs.build-number }}