fix(sdk): pass through required env vars
This commit is contained in:
parent
74edf65413
commit
79cb3de225
2 changed files with 17 additions and 0 deletions
13
action.yaml
13
action.yaml
|
|
@ -15,6 +15,16 @@ inputs:
|
|||
required: false
|
||||
default: 'v0.1.0'
|
||||
|
||||
baseUrl:
|
||||
description: 'The base URL of the Edge Connect API.'
|
||||
required: true
|
||||
username:
|
||||
description: 'The username for the Edge Connect API.'
|
||||
required: true
|
||||
password:
|
||||
description: 'The password for the Edge Connect API.'
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
|
|
@ -26,3 +36,6 @@ runs:
|
|||
INPUT_CONFIG_FILE: ${{ inputs.configFile }}
|
||||
INPUT_DRY_RUN: ${{ inputs.dryRun }}
|
||||
INPUT_VERSION: ${{ inputs.version }}
|
||||
EDGE_CONNECT_BASE_URL: ${{ inputs.baseUrl }}
|
||||
EDGE_CONNECT_USERNAME: ${{ inputs.username }}
|
||||
EDGE_CONNECT_PASSWORD: ${{ inputs.password }}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
export EDGE_CONNECT_BASE_URL
|
||||
export EDGE_CONNECT_USERNAME
|
||||
export EDGE_CONNECT_PASSWORD
|
||||
|
||||
local download_url="https://edp.buildth.ing/DevFW-CICD/edge-connect-client/releases/download/${INPUT_VERSION}/edge-connect-client_Linux_x86_64.tar.gz"
|
||||
|
||||
echo "Downloading edge-connect-client from ${download_url}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue