Remove DNSControl prefix from input arguments

This commit is contained in:
Koen Rouwhorst 2021-01-16 18:22:27 +01:00
parent a8b2018ce2
commit 229fdd3a1c
2 changed files with 4 additions and 6 deletions

View file

@ -9,11 +9,11 @@ inputs:
args: args:
description: DNSControl command description: DNSControl command
required: true required: true
dnscontrol_config_file: config_file:
description: Path to DNSControl configuration file. description: Path to DNSControl configuration file.
required: false required: false
default: 'dnsconfig.js' default: 'dnsconfig.js'
dnscontrol_creds_file: creds_file:
description: Path to DNSControl credentials file. description: Path to DNSControl credentials file.
required: false required: false
default: 'creds.json' default: 'creds.json'

View file

@ -3,12 +3,10 @@
set -eo pipefail set -eo pipefail
# Resolve to full paths # Resolve to full paths
CONFIG_ABS_PATH="$(readlink -f "${INPUT_DNSCONTROL_CONFIG_FILE}")" CONFIG_ABS_PATH="$(readlink -f "${INPUT_CONFIG_FILE}")"
CREDS_ABS_PATH="$(readlink -f "${INPUT_DNSCONTROL_CREDS_FILE}")" CREDS_ABS_PATH="$(readlink -f "${INPUT_CREDS_FILE}")"
WORKING_DIR="$(dirname "${CONFIG_ABS_PATH}")" WORKING_DIR="$(dirname "${CONFIG_ABS_PATH}")"
#CONFIG_FILE="$(basename "${INPUT_DNSCONTROL_CONFIG_FILE}")"
cd "$WORKING_DIR" cd "$WORKING_DIR"
IFS= IFS=