From 8c01d91970e6ee9d7773ac17476c6de10927bcd6 Mon Sep 17 00:00:00 2001 From: Rishav Dhar <19497993+rdhar@users.noreply.github.com> Date: Thu, 10 Oct 2024 17:43:49 +0100 Subject: [PATCH] fix: auto-approve ref Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com> --- action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.js b/action.js index 3e5c48cf..a8c0686c 100644 --- a/action.js +++ b/action.js @@ -273,7 +273,7 @@ module.exports = async ({ context, core, exec, github }) => { // TF apply. if (process.env.arg_command === "apply") { // Download the TF plan file if not auto-approved. - if (!/^true$/i.test(process.env.auto_approve)) { + if (!/^true$/i.test(process.env.arg_auto_approve)) { // TF plan anew for later comparison if plan_parity is enabled. if (/^true$/i.test(process.env.plan_parity)) { await exec_tf(