mirror of
https://github.com/koenrh/dnscontrol-action.git
synced 2024-12-27 01:34:19 +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:
|
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'
|
||||||
|
|
|
@ -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=
|
||||||
|
|
Loading…
Reference in a new issue