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:
description: DNSControl command
required: true
dnscontrol_config_file:
config_file:
description: Path to DNSControl configuration file.
required: false
default: 'dnsconfig.js'
dnscontrol_creds_file:
creds_file:
description: Path to DNSControl credentials file.
required: false
default: 'creds.json'

View file

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