Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions image/actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ function setup() {
detect-tfmask

execute_run_commands

create-auto-tfvars
}

function relative_to() {
Expand Down Expand Up @@ -181,8 +183,6 @@ function set-init-args() {
INIT_ARGS="$INIT_ARGS -backend-config=$config"
done
fi

create-auto-tfvars
}

##
Expand Down Expand Up @@ -409,7 +409,8 @@ function create-auto-tfvars() {

if [[ -n "${INPUT_VARIABLES:-}" ]]; then
debug_log "Creating autoloading tfvars file for the variables input: zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars"
echo "$INPUT_VARIABLES" >"$INPUT_PATH/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars"
echo "$INPUT_VARIABLES" >"$STEP_TMP_DIR/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars"
ln -s "$STEP_TMP_DIR/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars" "$INPUT_PATH/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.auto.tfvars"
fi
}

Expand Down
Loading