Skip to content

Commit

Permalink
chore: set to output
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-chris committed Dec 28, 2023
1 parent 161473c commit 0e1efca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/actions/tf-apply/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/actions/tf-plan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e1efca

Please sign in to comment.