Skip to content

Commit 52d206b

Browse files
author
Chris Wiechmann
committed
Logging improved
1 parent 3cd2968 commit 52d206b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ inputs:
99
apimHostname:
1010
description: "The API-Manager hostname without port or protocol."
1111
required: true
12+
apimPort:
13+
description: "The API-Manager port."
14+
required: true
15+
default: "8075"
1216
apimUsername:
1317
description: "The API-Manager username."
1418
required: true
@@ -31,7 +35,7 @@ inputs:
3135
description: "The directory containing your users. Each user in a separate directory."
3236
required: false
3337
apimCLICommand:
34-
description: "Control the APIM-CLI command yourself. For example: 'apim api check-certs'. You may combine this with apimExtraArgs depending on you the command you use."
38+
description: "Run an APIM-CLI command. For example: 'apim api check-certs'. You may combine this with apimExtraArgs depending on you the command you use."
3539
required: false
3640
runs:
3741
using: "docker"

entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/bash
22

33
CLI=/apim-cli-1.5.1/scripts/apim.sh
4-
echo "Using API-Manager: https://${INPUT_APIMHOSTNAME}:"
4+
echo "Using API-Manager: https://${INPUT_APIMHOSTNAME}:${INPUT_APIMPORT}"
55

6-
apimCLIArgs="-h ${INPUT_APIMHOSTNAME} -u ${INPUT_APIMUSERNAME} -p ${INPUT_APIMPASSWORD} ${INPUT_APIMEXTRAARGS}"
6+
apimCLIArgs="-h ${INPUT_APIMHOSTNAME} -port ${INPUT_APIMPORT} -u ${INPUT_APIMUSERNAME} -p ${INPUT_APIMPASSWORD} ${INPUT_APIMEXTRAARGS}"
77

88
if ! [ -z ${INPUT_APIMCLICOMMAND} ];then
99
echo "Calling APIM-CLI with given command: ${INPUT_APIMCLICOMMAND}"
10-
set -x
1110
$CLI ${INPUT_APIMCLICOMMAND} ${apimCLIArgs} || exit 99;
12-
exit
1311
fi
1412

1513
# Import all users

0 commit comments

Comments
 (0)