Skip to content

Commit

Permalink
fix: rework working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shejri committed Sep 18, 2024
1 parent 0a8a167 commit 7b003e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ jobs:
az account set --subscription $AZURE_SUBSCRIPTION_ID
- name: 'Terraform Init'
working-directory: ${{github.event.inputs.directory}}
run: |
cd ${{github.event.inputs.directory}}
source scripts/helper.sh
[[ "$PWD" == terraform ]] && source scripts/helper.sh
export RESOURCE_GROUP_NAME=$(extract_value "resource_group_name" config.azurerm.tfbackend)
export STORAGE_ACCOUNT_NAME=$(extract_value "storage_account_name" config.azurerm.tfbackend)
Expand All @@ -60,5 +59,6 @@ jobs:
terraform workspace show
- name: 'Terraform Plan'
working-directory: ${{github.event.inputs.directory}}
run: |
terraform plan -out main.tfplan

0 comments on commit 7b003e6

Please sign in to comment.