From 0e1efca37e6e62a31c9c8566c3e05bc6ff24a670 Mon Sep 17 00:00:00 2001 From: Christopher Lindsay Date: Thu, 28 Dec 2023 10:22:57 -0500 Subject: [PATCH] chore: set to output --- .github/actions/tf-apply/action.yaml | 3 +-- .github/actions/tf-plan/action.yaml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/actions/tf-apply/action.yaml b/.github/actions/tf-apply/action.yaml index 0aba8149fc..a4d37b46b5 100644 --- a/.github/actions/tf-apply/action.yaml +++ b/.github/actions/tf-apply/action.yaml @@ -39,8 +39,7 @@ runs: - name: Get last directory name id: get-tf-dir run: | - tf_dir=$(echo ${{ inputs.terraform_directory }} | rev | cut -d'/' -f1 | rev) - echo "Last directory name is: $tf_dir" + tf_dir=$(echo ${{ inputs.terraform_directory }} | rev | cut -d'/' -f1 | rev) >> $GITHUB_OUTPUT shell: bash - name: Set Terraform Variables diff --git a/.github/actions/tf-plan/action.yaml b/.github/actions/tf-plan/action.yaml index 4fc380576d..b82c2c1924 100644 --- a/.github/actions/tf-plan/action.yaml +++ b/.github/actions/tf-plan/action.yaml @@ -36,8 +36,7 @@ runs: - name: Get last directory name id: get-tf-dir run: | - tf_dir=$(echo ${{ inputs.terraform_directory }} | rev | cut -d'/' -f1 | rev) - echo "Last directory name is: $tf_dir" + tf_dir=$(echo ${{ inputs.terraform_directory }} | rev | cut -d'/' -f1 | rev) >> $GITHUB_OUTPUT shell: bash - name: Set Terraform Variables