From c97323cef5b6cebfe320ccebea8e46828b1ef06d Mon Sep 17 00:00:00 2001 From: xurtasun Date: Mon, 9 Oct 2023 13:40:01 +0200 Subject: [PATCH 1/2] env --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c23f59b..51836f2 100644 --- a/action.yml +++ b/action.yml @@ -31,6 +31,8 @@ outputs: runs: using: 'composite' steps: + - shell: bash + run: env - name: Execute Terragrunt shell: bash - run: bash main.sh + run: bash ${{ github.action_path }}/src/main.sh From ccfc614854d1f80f4e1313b8c885244663b3dfb0 Mon Sep 17 00:00:00 2001 From: xurtasun Date: Mon, 9 Oct 2023 13:45:08 +0200 Subject: [PATCH 2/2] envs variables --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 51836f2..58489b7 100644 --- a/action.yml +++ b/action.yml @@ -31,8 +31,12 @@ outputs: runs: using: 'composite' steps: - - shell: bash - run: env - name: Execute Terragrunt shell: bash + env: + INPUT_TF_VERSION: ${{ inputs.tf_version }} + INPUT_TG_VERSION: ${{ inputs.tg_version }} + INPUT_TG_COMMAND: ${{ inputs.tg_command }} + INPUT_TG_COMMENT: ${{ inputs.tg_comment }} + INPUT_TG_DIR: ${{ inputs.tg_dir }} run: bash ${{ github.action_path }}/src/main.sh