diff --git a/action.yaml b/action.yaml index 74686fb..5732361 100644 --- a/action.yaml +++ b/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 }} diff --git a/endpoint.sh b/endpoint.sh index 98d5c4a..5ebb322 100755 --- a/endpoint.sh +++ b/endpoint.sh @@ -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}"