Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-chris committed Dec 28, 2023
1 parent 7ff6927 commit 161473c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/actions/tf-apply/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ 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: $last_dir"
tf_dir=$(echo ${{ inputs.terraform_directory }} | rev | cut -d'/' -f1 | rev)
echo "Last directory name is: $tf_dir"
shell: bash

- name: Set Terraform Variables
Expand Down Expand Up @@ -85,7 +85,7 @@ runs:
github_token: ${{ inputs.github_token }}
workflow: ${{ inputs.plan_workflow_file }}
pr: ${{ inputs.pr_id }}
name: ${{ inputs.pr_id }}-${{ steps.get-tf-dir.outputs.tf-dir }}-tf-plan
name: ${{ inputs.pr_id }}-${{ steps.get-tf-dir.outputs.tf_dir }}-tf-plan
path: ${{ inputs.terraform_directory }}

# - name: Terraform Apply
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/tf-plan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ 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: $last_dir"
tf_dir=$(echo ${{ inputs.terraform_directory }} | rev | cut -d'/' -f1 | rev)
echo "Last directory name is: $tf_dir"
shell: bash

- name: Set Terraform Variables
Expand Down Expand Up @@ -92,7 +92,7 @@ runs:
id: save-artifact
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.pr_id }}-${{ steps.get-tf-dir.outputs.tf-dir }}-tf-plan
name: ${{ inputs.pr_id }}-${{ steps.get-tf-dir.outputs.tf_dir }}-tf-plan
path: ${{ inputs.terraform_directory }}/tfplan

- name: Comment Plan
Expand Down

0 comments on commit 161473c

Please sign in to comment.