-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathaction.yml
More file actions
104 lines (100 loc) · 3.2 KB
/
action.yml
File metadata and controls
104 lines (100 loc) · 3.2 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: 'B2C Commerce Developer Tooling'
description: 'Setup the Salesforce B2C Commerce CLI and optionally run a command'
branding:
icon: 'terminal'
color: 'blue'
inputs:
command:
description: 'CLI command to run (omit for setup-only)'
required: false
version:
description: 'CLI version to install (e.g. "latest", "0.4.1", "nightly")'
required: false
default: 'latest'
node-version:
description: 'Node.js version to install'
required: false
default: '22'
json:
description: 'Append --json flag and parse JSON output into the result output'
required: false
default: 'true'
working-directory:
description: 'Working directory for the command'
required: false
default: '.'
client-id:
description: 'OAuth Client ID → SFCC_CLIENT_ID'
required: false
client-secret:
description: 'OAuth Client Secret → SFCC_CLIENT_SECRET'
required: false
server:
description: 'B2C instance hostname → SFCC_SERVER'
required: false
code-version:
description: 'Code version → SFCC_CODE_VERSION'
required: false
username:
description: 'WebDAV username → SFCC_USERNAME'
required: false
password:
description: 'WebDAV password/access key → SFCC_PASSWORD'
required: false
short-code:
description: 'SCAPI short code → SFCC_SHORTCODE'
required: false
tenant-id:
description: 'Tenant ID → SFCC_TENANT_ID'
required: false
mrt-api-key:
description: 'MRT API key → MRT_API_KEY'
required: false
mrt-project:
description: 'MRT project slug → MRT_PROJECT'
required: false
mrt-environment:
description: 'MRT environment → MRT_ENVIRONMENT'
required: false
account-manager-host:
description: 'Account Manager hostname → SFCC_ACCOUNT_MANAGER_HOST'
required: false
outputs:
cli-version:
description: 'Installed CLI version'
value: ${{ steps.setup.outputs.cli-version }}
result:
description: 'Command output (JSON-parsed when json=true)'
value: ${{ steps.command.outputs.result }}
exit-code:
description: 'Command exit code'
value: ${{ steps.command.outputs.exit-code }}
runs:
using: 'composite'
steps:
- name: Setup B2C CLI
id: setup
uses: SalesforceCommerceCloud/b2c-developer-tooling/actions/setup@v1
with:
version: ${{ inputs.version }}
node-version: ${{ inputs.node-version }}
client-id: ${{ inputs.client-id }}
client-secret: ${{ inputs.client-secret }}
server: ${{ inputs.server }}
code-version: ${{ inputs.code-version }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}
short-code: ${{ inputs.short-code }}
tenant-id: ${{ inputs.tenant-id }}
mrt-api-key: ${{ inputs.mrt-api-key }}
mrt-project: ${{ inputs.mrt-project }}
mrt-environment: ${{ inputs.mrt-environment }}
account-manager-host: ${{ inputs.account-manager-host }}
- name: Run command
id: command
if: inputs.command != ''
uses: SalesforceCommerceCloud/b2c-developer-tooling/actions/run@v1
with:
command: ${{ inputs.command }}
json: ${{ inputs.json }}
working-directory: ${{ inputs.working-directory }}