Skip to content

Commit 94a9607

Browse files
committed
Create auto var files as symlinks
1 parent 6c4e0c5 commit 94a9607

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

image/actions.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ function setup() {
150150
detect-tfmask
151151

152152
execute_run_commands
153+
154+
create-auto-tfvars
153155
}
154156

155157
function relative_to() {
@@ -181,8 +183,6 @@ function set-init-args() {
181183
INIT_ARGS="$INIT_ARGS -backend-config=$config"
182184
done
183185
fi
184-
185-
create-auto-tfvars
186186
}
187187

188188
##
@@ -403,6 +403,7 @@ function create-auto-tfvars() {
403403

404404
debug_log "Creating autoloading tfvars file for $file_path: zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.$name.auto.tfvars"
405405
ln -s "$file_path" "$INPUT_PATH/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.$name.auto.tfvars"
406+
debug_cmd ls -la "$INPUT_PATH/zzzz-dflook-terraform-github-actions-$AUTO_TFVARS_COUNTER.$name.auto.tfvars"
406407
AUTO_TFVARS_COUNTER=$(printf "%02d\n" "$((AUTO_TFVARS_COUNTER + 1))")
407408
done
408409
fi

0 commit comments

Comments
 (0)