Skip to content

Commit 49ebd89

Browse files
author
Chris Wiechmann
committed
Option added to specify CLI-Version
1 parent eec8084 commit 49ebd89

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

action.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ inputs:
3030
userDirectory:
3131
description: "The directory containing your users. Each user in a separate directory."
3232
required: false
33+
apimCLIVersion:
34+
description: "If you would like to use a different APIM-CLI version than the default used by the action. Format is: x.y.z"
35+
required: false
3336
runs:
3437
using: "docker"
3538
image: "Dockerfile"

entrypoint.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22

3-
CLI=/apim-cli-1.5.1/scripts/apim.sh
3+
if ! [ -z ${INPUT_APIMCLIVERSION} ];then
4+
echo "Downloading specified APIM-CLI version: ${INPUT_APIMCLIVERSION}"
5+
wget -qO- https://github.com/Axway-API-Management-Plus/apim-cli/releases/download/apimcli-${INPUT_APIMCLIVERSION}/axway-apimcli-${INPUT_APIMCLIVERSION}.tar.gz | tar xvfz - -C /
6+
CLI=/apim-cli-${INPUT_APIMCLIVERSION}/scripts/apim.sh
7+
else
8+
CLI=/apim-cli-1.5.1/scripts/apim.sh
9+
fi
410

511
apimCLIArgs="-h ${INPUT_APIMHOSTNAME} -u ${INPUT_APIMUSERNAME} -p ${INPUT_APIMPASSWORD} ${INPUT_APIMEXTRAARGS}"
612

0 commit comments

Comments
 (0)