-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
52 lines (52 loc) · 1.65 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "StackSpot Workflow"
description: "StackSpot Workflow"
author: "StackSpot"
branding:
icon: "truck"
color: "purple"
inputs:
execution-id:
description: "Execution ID"
required: true
client-id:
description: "Client ID StackSpot"
required: true
client-secret:
description: "Client Secret StackSpot"
required: true
realm:
description: "Realm StackSpot"
required: true
debug:
description: "Debug Execution"
required: true
repository-url:
description: "Repository URL to commit files"
required: false
idm-base-url:
description: "StackSpot IDM base url"
required: false
default: "https://idm.stackspot.com"
workflow-api-base-url:
description: "Workflow API base url"
required: false
default: "https://workflow-api.v1.stackspot.com"
origin-branch:
description: "Branch used as origin to create the app/infra"
required: false
default: ""
feature-branch:
description: "Feature branch to be created for PR to origin-branch"
required: false
default: ""
extra-inputs:
description: "Inputs to be added in all actions and plugins"
required: false
default: "{}"
runs:
using: "composite"
steps:
- run: |
echo '{"extra_inputs": ${{ inputs.extra-inputs }} }' > extra-inputs.json
${{ github.action_path }}/entrypoint.sh ${{ inputs.execution-id }} ${{ inputs.client-id }} ${{ inputs.client-secret }} ${{ inputs.realm }} ${{ inputs.debug }} ${{ inputs.repository-url }} ${{ inputs.idm-base-url }} ${{ inputs.workflow-api-base-url }} ${{ inputs.origin-branch }} ${{ inputs.feature-branch }} $(base64 extra-inputs.json -w0)
shell: bash