mirror of
https://github.com/koenrh/dnscontrol-action.git
synced 2024-12-26 01:01:27 +08:00
Remove DNSControl prefix from input arguments
This commit is contained in:
parent
a8b2018ce2
commit
229fdd3a1c
2 changed files with 4 additions and 6 deletions
|
@ -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'
|
||||
|
|
|
@ -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=
|
||||
|
|
Loading…
Reference in a new issue